<?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: postext.js - resetting oper param</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/postextjs-resetting-oper-param</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/postextjs-resetting-oper-param/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>akremedy on postext.js - resetting oper param</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/postextjs-resetting-oper-param#p6595</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/postextjs-resetting-oper-param#p6595</guid>
        	        	<description><![CDATA[<p>Thanks Tony!&#160; Was I making this way too complicated, or what??&#160; LOL</p>
<p>Adam</p>
]]></description>
        	        	<pubDate>Sat, 09 May 2009 12:59:01 +0300</pubDate>
        </item>
        <item>
        	<title>tony on postext.js - resetting oper param</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/postextjs-resetting-oper-param#p6588</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/postextjs-resetting-oper-param#p6588</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m not sure you should use this. As per docs onclickSubmit should return object which then is extended to the post data. Try this (not tested) it should work:</p>
<p>onclickSubmit : function () {</p>
<p>// if you want add to all grid parameters here is a better solution</p>
<p>jQuery(&#8221;#mylinks_grid_table&#8221;).setGridParam({postData:{oper:&#39;addlink&#39;}});</p>
<p>// but here is the right return</p>
<p>return {oper:&#39;addlink&#39;}</p>
<p>}</p>
<p>REgards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Sat, 09 May 2009 09:58:11 +0300</pubDate>
        </item>
        <item>
        	<title>akremedy on postext.js - resetting oper param</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/postextjs-resetting-oper-param#p6564</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/postextjs-resetting-oper-param#p6564</guid>
        	        	<description><![CDATA[<p>Hi Tony, or anyone familiar with postext.js,</p>
<p>Can someone point me in the right direction on postext.js?&#160; I&#39;ve been all around it and can&#39;t make it work the way I think it should.&#160; I&#39;m trying to use setPostDataItem to manipulate "oper" on POST.&#160; I&#39;ll also be trying to appendPostData for some additional params that I need to pass to PHP.</p>
<p>I know grid.postext.js is loading and the function is executing (by way of alert(), etc), but I never see my POST data modified as per firebug.</p>
<p>Here is a snippet of the grid code showing that I&#39;m executing setPostDataItem on onclickSubmit()</p>
<p><input type='button' class='sfcodeselect' name='sfselectit544' value='Select Code' data-codeid='sfcode544' /></p>
<div class='sfcode' id='sfcode544'>&#160;&#160;&#160; }).navGrid(&#39;#mylinks_grid_nav&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; {},<br />&#160;&#160;&#160; &#160;&#160;&#160; {closeAfterEdit:false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;editCaption:&#39;Edit Link&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;height:150,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;reloadAfterSubmit:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;.assets/admin_funcs.php?oper=updlnkx&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;width:450<br />&#160;&#160;&#160; &#160;&#160;&#160; },<br />&#160;&#160;&#160; &#160;&#160;&#160; {addCaption:&#39;Add Link&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;clearAfterAdd:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;closeAfterAdd:false,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;height:150,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;reloadAfterSubmit:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;.assets/admin_funcs.php&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;width:450,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;beforeShowForm:function(formid){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery("#pop").val("addlnk");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery("#link",formid).val("http://");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;onclickSubmit:function(){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery("#mylinks_grid_table").setPostDataItem(&#39;oper&#39;,&#39;addlnk&#39;);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;afterComplete:function(serverResponse,postdata,formid){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery("#pop",formid).val("addlnk");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery("#link",formid).val("http://");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160; },</div>
<p>I&#39;ve tried a variety of other postext methods just to test, but have yet to get any of them working.&#160; I&#39;ve also tried manupulating POST params that are defined in the colModel (thinking that maybe the non-colModel POST params aren&#39;t exposed for manipulation??), but no success there either.</p>
<p>I&#39;d much rather use postext if possible - as it stands, I&#39;m having to add hidden columns in colModel to use in passing "extra" POST data, which I don&#39;t think is a very clean way to do things.</p>
<p>Thanks,</p>
<p>Adam</p>
]]></description>
        	        	<pubDate>Fri, 08 May 2009 23:26:44 +0300</pubDate>
        </item>
</channel>
</rss>