Forum
16:00
02/05/2013
Still receiving an error after changing virtually everything I am able to think to change & still receive the error:
Line: 61 Error: 'a.grid.bDiv' is null or not an object.
It throws this error in IE8. I had previously posted this issue in this forum here.
Here's what has been done:
Query that returns data has been optimized & returns data in around 50-70ms (it had been between 300-600ms, with some varying higher than that).
Removed the interval that was calling the code that created the grid every time.
Adding a second query to set a switch to only reload the grid when we have new or changed data in it.
Replaced the setInterval with a setTimeout that calls the second query that checks for new data (this executes every X seconds).
The code now performs the 2nd query (a count) every X seconds, and in the success portion of that AJAX call, if the count is > 0, then the code to unload the grid is called, followed by the code that calls the function to build the grid.
The error is thrown from: jquery.jqGrid.min.js on line 61
if(a.p.treeGrid===true)try{F.jqGrid("setTreeNode",G+1,l+G+1)}catch(S){}if(!a.p.treeGrid&&!a.p.scroll)a.grid.bDiv.scrollTop=0;a.p.reccount=l;a.p.treeANode=-1;a.p.userDataOnFooter&&F.jqGrid("footerData","set",a.p.userData,true);if(j){a.p.records=w;a.p.lastpage=Math.ceil(w/C)}g||a.updatepager(false,true);if(j)for(;l<w;){x=c[l];D=k(x,l+H);D=a.p.idPrefix+D;if(i.repeatitems){E||(E=U(s+u+m));var P=b.jgrid.getXmlData(x,i.cell,true);b.each(E,function(b){var c=P[this];if(!c)return false;o=c.textContent||c.text;
I'm not able to find this code elsewhere. Using jqGrid 4.5.2 & jQuery 1.9.1. Would appreciate any suggestions as to what's causing & how to resolve this error.
Thanks!
Most Users Ever Online: 715
Currently Online:
41 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66