<?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: The good way to set default postData and extraparam</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/the-good-way-to-set-default-postdata-and-extraparam</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/the-good-way-to-set-default-postdata-and-extraparam/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Shnoulle on The good way to set default postData and extraparam</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/the-good-way-to-set-default-postdata-and-extraparam#p29626</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/the-good-way-to-set-default-postdata-and-extraparam#p29626</guid>
        	        	<description><![CDATA[<p>OK,</p>
</p>
<p>Not tested with postData, will try next time.</p>
<p>But here: directly apply to whole $.post for jquery : it&#39;s OK too:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8426' value='Select Code' data-codeid='sfcode8426' /></p>
<div class='sfcode' id='sfcode8426'>$.ajaxSetup({data: {myparam:&#39;test&#39;}});</div>
<p>
See : <a href="http://api.jquery.com/jQuery.ajaxSetup/" rel="nofollow" target="_blank">http://api.jquery.com/jQuery.ajaxSetup/</a></p>
]]></description>
        	        	<pubDate>Mon, 07 Oct 2013 09:27:43 +0300</pubDate>
        </item>
        <item>
        	<title>tony on The good way to set default postData and extraparam</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/the-good-way-to-set-default-postdata-and-extraparam#p29571</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/the-good-way-to-set-default-postdata-and-extraparam#p29571</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Open your language file &#8211; in your case grid.locale-fr.js and in the defaults section add this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1896' value='Select Code' data-codeid='sfcode1896' /></p>
<div class='sfcode' id='sfcode1896'>
<p>$.extend($.jgrid,{<br />&#160;&#160; &#160;defaults : {</p>
<p>&#8230;&#8230;,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; postData : { myparam:&#39;test&#39; }<br />&#160;&#160;&#160; },<br />&#8230;</p>
</p>
</div>
<p>or use extend to extend the defaults after you load the language file, which is better solution.</p>
</p>
<p>This will extend your postData array. Note that you do this only once</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Mon, 30 Sep 2013 11:45:47 +0300</pubDate>
        </item>
        <item>
        	<title>Shnoulle on The good way to set default postData and extraparam</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/the-good-way-to-set-default-postdata-and-extraparam#p29565</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/the-good-way-to-set-default-postdata-and-extraparam#p29565</guid>
        	        	<description><![CDATA[<p>Trying:</p>
<p>jQuery.extend(jQuery.jgrid.defaults, {setGridParam:{myparam:&#39;test&#39;}});<br />jQuery.extend(jQuery.jgrid.defaults, {extraparam:{myparam:&#39;test&#39;}});</p>
<p><img class="spSmiley" style="margin:0" title="Cry" src="/blog/wp-content/forum-smileys/sf-cry.gif" alt="Cry" /></p>
]]></description>
        	        	<pubDate>Sat, 28 Sep 2013 15:44:37 +0300</pubDate>
        </item>
        <item>
        	<title>Shnoulle on The good way to set default postData and extraparam</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/the-good-way-to-set-default-postdata-and-extraparam#p29556</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/the-good-way-to-set-default-postdata-and-extraparam#p29556</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>We use jqGrid&#160; 4.4.4 but this can be updated, in our application we use jqgrid with ajax request to get the data and to update the data.</p>
<p>We use too a crsf protection, then we need to add this in$_POST everytime.</p>
<p>We can update each jqgrid function to have the $_POST, but think, maybe, we can set it globally.</p>
<p>I look at :</p>
<ul>
<li>setGridParam : (<a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....ki:methods</a>)</li>
<li>default array</li>
</ul>
<p>but don&#39;t find the good way.</p>
</p>
<p>Did someone can give me some information to allways add postData (for table data) and extraparam (for update row) ?</p>
<p>Thank&#39;s a lot</p>
]]></description>
        	        	<pubDate>Fri, 27 Sep 2013 11:16:53 +0300</pubDate>
        </item>
</channel>
</rss>