<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: getRowData and Chrome</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-and-chrome</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-and-chrome/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on getRowData and Chrome</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-and-chrome#p9977</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-and-chrome#p9977</guid>
        	        	<description><![CDATA[<p>Hello Roger,</p>
<p>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.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 22 Sep 2009 06:00:19 +0300</pubDate>
        </item>
        <item>
        	<title>rojoba on getRowData and Chrome</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-and-chrome#p9913</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/getrowdata-and-chrome#p9913</guid>
        	        	<description><![CDATA[<p>Hi Tony</p>
</p>
<p>In the hope I&#39;m not posting the same bug, I did search for something simliar but didn&#39;t find antyhing. I downloaded the latest code about 2 weeks ago and only recently made Chrome the primary browser for my app.&#160; 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&#39;m having an issue with.</p>
<p>To "fix" (don&#39;t know if i can call it a fix) it, we removed the use of javascript&#39;s namedItem function and replaced it with a JQuery equavilent like so:</p>
</p>
<p>getRowData : function( rowid ) {<br />&#160;&#160;&#160; &#160;&#160;&#160; var res = {};<br />&#160;&#160;&#160; &#160;&#160;&#160; this.each(function(){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var $t = this,nm,ind;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //ind = $t.rows.namedItem(rowid);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; ind=$(&#39;#&#39;+rowid);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (ind.length==0) return res;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //if(!ind) return res;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //if (ind.length!=undefined) ind=ind[0];&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;td&#39;,ind[0]).each( function(i) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; nm = $t.p.colModel[i].name; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if ( nm !== &#39;cb&#39; &#38;&#38; nm !== &#39;subgrid&#39;) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if($t.p.treeGrid===true &#38;&#38; nm == $t.p.ExpandColumn) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; res[nm] = $.jgrid.htmlDecode($("span:first",this).html());<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; } else {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; res[nm] = $.jgrid.htmlDecode($(this).html());<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; });<br />&#160;&#160;&#160; &#160;&#160;&#160; });<br />&#160;&#160;&#160; &#160;&#160;&#160; return res;<br />&#160;&#160;&#160; }</p>
<p>What we don&#39;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&#39;s kinda wierd in a way.</p>
<p>Regards,</p>
<p>Roger</p>
]]></description>
        	        	<pubDate>Mon, 21 Sep 2009 06:47:29 +0300</pubDate>
        </item>
</channel>
</rss>