<?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: Want to run dataUrl not only once</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/want-to-run-dataurl-not-only-once</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/want-to-run-dataurl-not-only-once/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on Want to run dataUrl not only once</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/want-to-run-dataurl-not-only-once#p26207</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/want-to-run-dataurl-not-only-once#p26207</guid>
        	        	<description><![CDATA[<p>Probabably you have problem with caching the results of the previous Ajax request in Internet Expolrer. You can try to add</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2119' value='Select Code' data-codeid='sfcode2119' /></p>
<div class='sfcode' id='sfcode2119'>ajaxSelectOptions: { cache: false }</div>
<p>as additional option of jqGrid (see <a href="http://stackoverflow.com/a/7422410/315935" target="_blank">here</a>).</p>
<p>Even more better if you would set "Cache-Control" HTTP header to "max-age=0"&#160;in the server response of <strong>dataUrl</strong>. The difference I described&#160;<a href="http://stackoverflow.com/a/3885956/315935" target="_blank">here</a>. Shortly the difference is: usage of <strong>cache: false</strong> in the ajax request makes additional parameter to every request. So the request will be saved in the local cache as unique URL. The previously saved URL will never used. The usage of "Cache-Control" header to "max-age=0" will follow to that every previous saved data will be <em>revalidated</em> on the server. So the <strong>dataUrl</strong>&#160;will be called every time. If the server return data in the response the data will be replace the previously cached data. You have additional option to send ETag as additional HTTP headel with for example MD5 hash from the returned data. The ETag from the previous saved server response will be send in the revalidation request. So the server are able return empty body and special "304 Not Modified" response to inform the web browser that it can just use its local previously cached data.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Fri, 23 Mar 2012 13:02:54 +0200</pubDate>
        </item>
        <item>
        	<title>jonathan.a on Want to run dataUrl not only once</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/want-to-run-dataurl-not-only-once#p26206</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/want-to-run-dataurl-not-only-once#p26206</guid>
        	        	<description><![CDATA[<p>No but i&#39;m searching the solution too....</p>
]]></description>
        	        	<pubDate>Fri, 23 Mar 2012 11:36:13 +0200</pubDate>
        </item>
        <item>
        	<title>kct01 on Want to run dataUrl not only once</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/want-to-run-dataurl-not-only-once#p19623</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/want-to-run-dataurl-not-only-once#p19623</guid>
        	        	<description><![CDATA[<p>Hi!</p>
</p>
<p>First time to post here, as I really can&#39;t find the solution. Hope someone could help me.</p>
<p>I was trying to get to select option dynamically. I know "dataUrl" would help and it can refresh everytime if one use inline editing.</p>
<p>However, I would like to use form editing but in this situation, dataUrl would only get the options from database once.</p>
<p>Does anyone know how to force it to run not only once!?</p>
</p>
<p>Thank you in advance!</p>
</p>
<p>Roy Tam</p>
]]></description>
        	        	<pubDate>Thu, 09 Sep 2010 05:14:58 +0300</pubDate>
        </item>
</channel>
</rss>