Forum
06:47
06/02/2009
Hi Tony
In the hope I'm not posting the same bug, I did search for something simliar but didn't find antyhing. I downloaded the latest code about 2 weeks ago and only recently made Chrome the primary browser for my app. There appears to be a problem in the getRowData function that is very wierd. Works for some pages in Chrome, but not in the particular page I'm having an issue with.
To "fix" (don't know if i can call it a fix) it, we removed the use of javascript's namedItem function and replaced it with a JQuery equavilent like so:
getRowData : function( rowid ) {
var res = {};
this.each(function(){
var $t = this,nm,ind;
//ind = $t.rows.namedItem(rowid);
ind=$('#'+rowid);
if (ind.length==0) return res;
//if(!ind) return res;
//if (ind.length!=undefined) ind=ind[0];
$('td',ind[0]).each( function(i) {
nm = $t.p.colModel[i].name;
if ( nm !== 'cb' && nm !== 'subgrid') {
if($t.p.treeGrid===true && nm == $t.p.ExpandColumn) {
res[nm] = $.jgrid.htmlDecode($("span:first",this).html());
} else {
res[nm] = $.jgrid.htmlDecode($(this).html());
}
}
});
});
return res;
}
What we don't understand is why namedItem would return an Element in one case and a NodeList in another? Perhaps you have an idea of why it is doing this? Like I said, similar code works on other pages in Chrome... so it's kinda wierd in a way.
Regards,
Roger
06:00
Moderators
30/10/2007
Hello Roger,
Thanks for this. Will look definitley at this. Trying to google it seems that there is a bug in WebKit (but only comments, no clear explain). I will try to investigate the problem deeper.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
54 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