<?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: ajax call question</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/ajax-call-question</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/ajax-call-question/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Pete on ajax call question</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ajax-call-question#p3852</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ajax-call-question#p3852</guid>
        	        	<description><![CDATA[<p>Thanks Tony.&#160; That did it!&#160; The setGridParam was what I needed.</p></p>
]]></description>
        	        	<pubDate>Tue, 06 Jan 2009 21:09:15 +0200</pubDate>
        </item>
        <item>
        	<title>tony on ajax call question</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ajax-call-question#p3811</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ajax-call-question#p3811</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>jqGrid&#160; does not cache the posted data. On every call we do:</p>
<p>nd: (new Date().getTime())</p>
<p>which prevents the cahing.</p>
<p>Also maybe you should do setGridParam({postData:{some:value}}) to set the new parameters. If you use trigger("reloadGrid") the data is reloaded with the currently setted parameters.</p>
<p>Usualy I do $("#mygrid").setGridParam({page:3}).trigger("reloadGrid")</p>
<p>to have efect this.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 05 Jan 2009 02:49:41 +0200</pubDate>
        </item>
        <item>
        	<title>Pete on ajax call question</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ajax-call-question#p3772</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ajax-call-question#p3772</guid>
        	        	<description><![CDATA[<p>I have a grid that accesses json formatted data via an ajax call to a servlet routine. The first issue I had is that I have several values on the page that, when changed, should result in the grid being updated with the changed data.&#160; When I called the function I wrote to reload the data, the servlet routine wasn&#39;t ever invoked, even though I could see the js function being called in debug.&#160; I discovered the solution was to use the .trigger(&#8221;reloadGrid&#8221;) method and now the servlet was being invoked again.&#160; All was well.</p>
<p>But the data returned from the servlet was the same data, so I checked the URL that was being passed in the grid.&#160; In debug, the ajax url in the grid appears to be changed (I can see all the new values) but when it is passed to the servlet, the url appears to be unchanged (at least the parameters aren&#39;t changed although they ARE changed in the url that is invoked)</p>
<p>So the question is: Does jqGrid &#39;cache&#39; the ajax call?&#160; If so, can this behavior be changed?&#160; If NOT, where should I look to see where the url is perhaps being cached.</p>
<p>Thanks</p>
<p>Follow up:</p>
<p>Further debugging of the grid.base.js shows that the at line 93 the value of the url found in p.url IS correct but when the json string is executed in line 831, the value of p.url and ts.p.url has reverted BACK to it&#39;s original value. So, somewhere in the code the correct value is being replaced by a cached value.&#160; I don&#39;t know enough about jQuery to walk through all the code but something isn&#39;t quite right here.</p>
<p>Suggestions?</p>
]]></description>
        	        	<pubDate>Wed, 31 Dec 2008 19:11:27 +0200</pubDate>
        </item>
</channel>
</rss>