Author Topic: Works in FireFox but IE 11 throws:Unable to get property 'tableToArray' of undef  (Read 10125 times)

peoria309

  • Newbie
  • *
  • Posts: 3
    • View Profile
Hello,
     I am a newbie and this is my first post. I hope I am just making a stupid mistake. My code is working great in FireFox but when I execute it in Internet Explorer 11 it throws this error:

             Unable to get property 'tableToArray' of undefined or null reference

Here is a code snippet:
    for(var z=0;z<6;z++){
        var tblName = "#tranTable"+z;
        var gridName = "#grid_search"+z;
   var tbl = $(tblName);
   var obj = $.paramquery.tableToArray(tbl);   


The error occurs on that last line of code where I define the var obj.      
I dynamically build 6 tables and in the javascript I loop through the 6 tables.
It works perfectly in FireFox but fails in IE 11.

Here are my library links:
<!--jQuery dependencies-->
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/base/jquery-ui.css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>   
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
<!--PQ Grid files-->
    <link rel="stylesheet" href="pqgrid.min.css" />
    <script src="pqgrid.min.js"></script>
<!--PQ Grid Office theme-->
    <link rel="stylesheet" href="themes/office/pqgrid.css" />


I appreciate any help you can offer! :)

        Thanks for your assistance,
        Ken

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
It's difficult to make a guess about the reason. Could you please share a jsfiddle so that I can check it.

http://jsfiddle.net/paramquery/uep1jdtp/1/

peoria309

  • Newbie
  • *
  • Posts: 3
    • View Profile
Hello,
   Thank you so much for your quick response. This code is being executed inside of a IBM HATS Form. So I don't think it is possible to put it in jsfiddle. The HATs form is connected to a mainframe session and is rendering a webpage based on a CICS green screen.

      I was able to successfully execute a stripped down version of this code in IE 11 but for some reason there is some conflict executing it on the HATs form. When I open up IE Developer Tolls and debug it also says that the paramquery object is undefined.

     Any thoughts or suggestions would be greatly appreciated. Is there some alternate way to define or include the paramquery definition?

                 Thanks,
                 Ken

peoria309

  • Newbie
  • *
  • Posts: 3
    • View Profile
Hello,
     I got it working! Happy Day! :)  This project is being done in GIT. At some point the js files that I had put in the common/scripts folder got blown away. I am guessing FireFox must have cached them maybe? When I went to look at them they were not showing up in the IBM HATS IDE which is also a little glitchy. The problem could have occurred there as well. All I had to do was put those js files back in the common/scripts folder and it started working again in IE 11! The fact that this is working has made my day! Thanks for your response and looking at this. I don't see a way to mark this issue as Resolved but the Admin of this site is more than welcome to do so.

               Thanks Again,
               ken