<?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: "undefined" when going to last page in IE7, works in Firefox</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/undefined-when-going-to-last-page-in-ie7-works-in-firefox</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/help/undefined-when-going-to-last-page-in-ie7-works-in-firefox/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on "undefined" when going to last page in IE7, works in Firefox</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/undefined-when-going-to-last-page-in-ie7-works-in-firefox#p14885</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/undefined-when-going-to-last-page-in-ie7-works-in-firefox#p14885</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Try to debug, not javascript code, but your response from the last page. Also check your server code again</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 17 Feb 2010 12:38:42 +0200</pubDate>
        </item>
        <item>
        	<title>orion on "undefined" when going to last page in IE7, works in Firefox</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/undefined-when-going-to-last-page-in-ie7-works-in-firefox#p14801</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/undefined-when-going-to-last-page-in-ie7-works-in-firefox#p14801</guid>
        	        	<description><![CDATA[<p>I have an urgent issue. I am populating my brid like below. The first time my page loads, it builds the grid fine. If I click "next page" to go to page 2, it works fine. If I click next page again (only 3 pages total), it actually pulls the data and you can see it but the "Loading..." image stays up and I can see I have a Javascript error, it says "&#39;undefined&#39; is null or not an object&#39;" and none of the buttons on the grid work anymore.</p>
<p>I tried using Visual Studio to debug the JS error and it is in the jqGrid&#39;s Javascript (but its minified) and it&#39;s something on the line , maybe 36 and it looks like</p>
</p>
<p>n=P[c];C=n[G];</p>
</p>
<p>Here, apparently n is undefined after the assignment (for some reason when this happens, "c" is equal to 3). This part may be wrong, it&#39;s just what I gathered trying to debug it.</p>
<p>This WORKS in Firefox 3.0.17.</p>
</p>
<p>---------------------------------------------------------------------</p>
<p><span style="font-size: x-small;"></span></p>
<p>jQuery(</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"#list2"</span></span><span style="font-size: x-small;">).jqGrid({</span></p>
<p><a href="&#39;/Location/GetJSON/&#60;%" target="_blank">url:</a></p>
</p>
<p><a href="&#39;/Location/GetJSON/&#60;%" target="_blank"><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;/Location/GetJSON/&#39;</span></span></a><span style="font-size: x-small;">, mtype: </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"GET"</span></span><span style="font-size: x-small;">,</span></p>
<p>datatype:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"json"</span></span><span style="font-size: x-small;">,</span></p>
<p>colNames:[</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;Name&#39;</span></span><span style="font-size: x-small;">, </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;Company&#39;</span></span><span style="font-size: x-small;">, </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;State&#39;</span></span><span style="font-size: x-small;">, </span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;StreetAddress1&#39;</span></span><span style="font-size: x-small;">],</span></p>
<p>colModel:[</p>
<p>{name:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;LocationName&#39;</span></span><span style="font-size: x-small;">,index:</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;LocationName&#39;</span></span><span style="font-size: x-small;">, width:200},</span></p>
<p>{name:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;CompanyId&#39;</span></span><span style="font-size: x-small;">,index:</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;CompanyId&#39;</span></span><span style="font-size: x-small;">, width:200 </span><span style="font-size: x-small;">},</span></p>
<p>{name:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;StateId&#39;</span></span><span style="font-size: x-small;">,index:</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;StateId&#39;</span></span><span style="font-size: x-small;">, width:200 </span><span style="font-size: x-small;">},</span></p>
<p>{name:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;StreetAddress1&#39;</span></span><span style="font-size: x-small;">,index:</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;StreetAddress1&#39;</span></span><span style="font-size: x-small;">, width:200}</span></p>
<p>],</p>
<p>jsonReader: {</p>
<p>repeatitems:</p>
</p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">false</span></span></p>
<p><span style="font-size: x-small;"></span></p>
<p>},</p>
<p>height:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;auto&#39;</span></span><span style="font-size: x-small;">,</span></p>
<p>rowNum:10,</p>
<p>rowList:[10,20,30],</p>
<p>pager:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;#pager2&#39;</span></span><span style="font-size: x-small;">,</span></p>
<p>sortname:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;LocationName&#39;</span></span><span style="font-size: x-small;">,</span></p>
<p>viewrecords:</p>
</p>
<p><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">true</span></span><span style="font-size: x-small;">,</span></p>
<p>sortorder:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"desc"</span></span><span style="font-size: x-small;">,</span></p>
<p>caption:</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"JSON Example"</span></span></p>
<p><span style="font-size: x-small;"></span></p>
<p>});</p>
<p>jQuery(</p>
</p>
<p><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">"#list2"</span></span><span style="font-size: x-small;">).jqGrid(</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;navGrid&#39;</span></span><span style="font-size: x-small;">,</span><span style="font-size: x-small; color: #a31515;"><span style="font-size: x-small; color: #a31515;">&#39;#pager2&#39;</span></span><span style="font-size: x-small;">,{edit:</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">false</span></span><span style="font-size: x-small;">,add:</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">false</span></span><span style="font-size: x-small;">,del:</span><span style="font-size: x-small; color: #0000ff;"><span style="font-size: x-small; color: #0000ff;">false</span></span><span style="font-size: x-small;">});</span></p>
]]></description>
        	        	<pubDate>Mon, 15 Feb 2010 00:56:46 +0200</pubDate>
        </item>
</channel>
</rss>