<?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: How to use afterSubmit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit</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/how-to-use-aftersubmit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>yellow1912 on How to use afterSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4116</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4116</guid>
        	        	<description><![CDATA[<p>To answer my own question:</p>
<p>set path in jquery.jqGrid.js</p>
</p>
<p>Raine</p>
]]></description>
        	        	<pubDate>Thu, 22 Jan 2009 20:21:48 +0200</pubDate>
        </item>
        <item>
        	<title>yellow1912 on How to use afterSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4114</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4114</guid>
        	        	<description><![CDATA[<blockquote>
<p>tony said:</p>
<p>Hello,</p>
<p>Use eval to to parse the string to json data.</p>
<p>Regards</p>
<p>Tony</p>
</blockquote>
<hr />
<p>Thanks Tony, that is what I will do now. BTW, can you also have a look at my other question here:</p>
<p>"if I rename the folder js to something else it doesnt work anymore, even when I correctly link jqModal and jqDnR, is there a setting for this or do I have to stick with &#39;js&#39;?"</p>
</p>
<p>Thanks again for all your help</p>
</p>
<p>Raine</p>
]]></description>
        	        	<pubDate>Thu, 22 Jan 2009 19:14:32 +0200</pubDate>
        </item>
        <item>
        	<title>tony on How to use afterSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4098</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4098</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Use eval to to parse the string to json data.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 22 Jan 2009 09:55:35 +0200</pubDate>
        </item>
        <item>
        	<title>yellow1912 on How to use afterSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4074</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4074</guid>
        	        	<description><![CDATA[<p>Also, after digging into the doc, I found this</p>
<div><span style="font-family: Bitstream Vera Sans;"><span style="font-size: 10pt;"><strong>succesfunc</strong> if defined this function is called immediately after the request is  successfully. To this function is passed the data returned from the server. Depending  on the data from server this function should return true or false.</span></span></div>
<div></div>
<div>I return json in my response, do I have to json decode the returned result in my <span style="font-family: Bitstream Vera Sans;"><span style="font-size: 10pt;"><strong>succesfunc?</strong></span></span></div>
<div></div>
<div>Thank you</div>
<div></div>
<div>Raine</div>
]]></description>
        	        	<pubDate>Wed, 21 Jan 2009 10:46:46 +0200</pubDate>
        </item>
        <item>
        	<title>yellow1912 on How to use afterSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4068</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4068</guid>
        	        	<description><![CDATA[<p>Excellent, thanks Tony</p>
</p>
<p>BTW, if I rename the folder js to something else it doesnt work anymore, even when I correctly link jqModal and jqDnR, is there a setting for this or do I have to stick with &#39;js&#39;?</p>
</p>
<p>Thank you</p>
</p>
<p>Raine</p>
]]></description>
        	        	<pubDate>Tue, 20 Jan 2009 15:36:40 +0200</pubDate>
        </item>
        <item>
        	<title>tony on How to use afterSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4026</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p4026</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>As of the docs the editRow has the following parameters.</p>
<p>editRow (rowid,keys,oneditfunc,succesfunc, url, extraparam, aftersavefunc,errorfunc)</p>
</p>
<p>Use succesfunc for this purpose.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 19 Jan 2009 02:39:06 +0200</pubDate>
        </item>
        <item>
        	<title>yellow1912 on How to use afterSubmit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p3973</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-to-use-aftersubmit#p3973</guid>
        	        	<description><![CDATA[<p>This may sounds dumb, because it really is. I searched many places and couldnt find a clear description for the place where I should call afterSubmit once the field is edited and submit (I want to let users know if the record is saved or not)</p>
</p>
<p>My code is below (following the sample showed in doc)</p>
</p>
<p>jQuery(document).ready(function(){ <br />&#160; var lastSel;</p>
<p>&#160; jQuery("#list").jqGrid({<br />&#160;&#160;&#160; url:&#39;somelink.php&#39;,<br />&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160; jsonReader : {<br />&#160;&#160;&#160; &#160; root: "rows",<br />&#160;&#160;&#160; &#160; page: "page",<br />&#160;&#160;&#160; &#160; total: "total",<br />&#160;&#160;&#160; &#160; records: "records",<br />&#160;&#160;&#160; &#160; repeatitems: true,<br />&#160;&#160;&#160; &#160; cell: "cell",<br />&#160;&#160;&#160; &#160; id: "id",<br />&#160;&#160;&#160; &#160; userdata: "userdata",<br />&#160;&#160;&#160; &#160; subgrid: {root:"rows", <br />&#160;&#160;&#160; &#160;&#160;&#160; repeatitems: true, <br />&#160;&#160;&#160; &#160;&#160;&#160; cell:"cell"<br />&#160;&#160;&#160; &#160; }<br />&#160;&#160;&#160; },<br />&#160;&#160;&#160; onSelectRow: function(id){<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(id &#38;&#38; id!==lastSel){ <br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#list&#39;).restoreRow(lastSel); <br />&#160;&#160;&#160; &#160;&#160;&#160; lastSel=id; <br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery(&#39;#list&#39;).editRow(id, true); <br />&#160;&#160;&#160; },<br />&#160;&#160;&#160; editurl: &#39;somelink.php?action=edit&#39;,</p>
<p>Any suggestion is really aprreciated. I&#39;ve been pulling out my hairs *_*</p>
]]></description>
        	        	<pubDate>Wed, 14 Jan 2009 13:31:58 +0200</pubDate>
        </item>
</channel>
</rss>