<?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: afterSubmit event</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event</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/aftersubmit-event/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>gvnsbt on afterSubmit event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13674</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13674</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>&#160;when, for example, &#160;I submit the data from edit form, the editurl script can return the "OK" string, or a message error.</p>
</p>
<p>afterSubmit : function (resp, postdata)</p>
<p>{</p>
<p><span style="white-space: pre;"> </span>// you should return from server OK in sucess, any other message on error</p>
<p><span style="white-space: pre;"> </span>var message =&#160;resp.responseText</p>
<p><span style="white-space: pre;"> </span>if(message&#160;== &#8220;OK&#8221;)</p>
<p><span style="white-space: pre;"> </span>return [true,"",""]</p>
<p><span style="white-space: pre;"> </span>else&#160;</p>
<p><span style="white-space: pre;"> </span>return [false, message, ""]</p>
</p>
<p>}</p>
<p>If I have a message error the form remains in open state and I can read on the top of form the message error, change the data and submit the data to server again.</p>
<p>If I have not error the form is clean, the main grid is update &#160;and I can do other operations.</p>
</p>
<p>Regarsd.</p>
</p>
<p>Giovanni.</p></p>
]]></description>
        	        	<pubDate>Fri, 08 Jan 2010 00:38:13 +0200</pubDate>
        </item>
        <item>
        	<title>tony on afterSubmit event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13531</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13531</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry not possible for now. What I do common in my applications is to call a custom function on succes whisc displays the message at bootom top screen for some time and the disappear.</p>
<p>Look here to have a idea:</p>
<p><a href="http://jqueryui.com/demos/effect/" rel="nofollow" target="_blank">http://jqueryui.com/demos/effect/</a></p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 03 Jan 2010 19:05:31 +0200</pubDate>
        </item>
        <item>
        	<title>shah on afterSubmit event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13490</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13490</guid>
        	        	<description><![CDATA[<p>Tony,</p>
<p>This is good, but how would i display the success message on the form itself and not a pop-up also i want to stay on the form after submit button is pressed.</p>
</p>
<p>Best Regards and a Happy new year! <img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /></p>
<p>- Shah</p></p>
]]></description>
        	        	<pubDate>Thu, 31 Dec 2009 18:58:13 +0200</pubDate>
        </item>
        <item>
        	<title>tony on afterSubmit event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13254</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13254</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4488' value='Select Code' data-codeid='sfcode4488' /></p>
<div class='sfcode' id='sfcode4488'>
<p>afterSubmit : function (resp, postdata)</p>
<p>{</p>
<p>// you should return from server OK in sucess, any other message on error</p>
<p>if(resp.responseText == "OK")</p>
<p>{</p>
<p>alert("Update is succefully")</p>
<p>return [true,"",""]</p>
<p>}</p>
<p>else {</p>
<p>alert("Update failed")</p>
<p>return [true,"",""]</p>
<p>}</p>
<p>}</p>
</div>
]]></description>
        	        	<pubDate>Tue, 22 Dec 2009 11:01:16 +0200</pubDate>
        </item>
        <item>
        	<title>gvnsbt on afterSubmit event</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13224</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/aftersubmit-event#p13224</guid>
        	        	<description><![CDATA[<p>I read docuemntation about afterSbmit event but&#160;I did not understand howto to manage the output result script of server.</p>
<p>For example, when I add a record the editurl cgi is ivoked and I can see ( in php script, that in the&#160;_REQUEST (alway) and in the _POST or _GET array (mytype parameter)) the operation request (add, search, del ecc.).</p>
</p>
<p>The afterSubmit has the return call with success message and id variable. How can I to connect the output cgi (editurl parameter) with afterSubmit?</p>
</p>
<p>I wish I could manage and to view the return message of editurl script &#160;in the form. Exmple : "Record&#160;inserted&#160;without errors" or</p>
<p>"Record not&#160;inserted ID already in archive", ecc.</p>
</p>
<p>Thanks in advance.</p>
</p>
<p>Giovanni.</p></p>
]]></description>
        	        	<pubDate>Mon, 21 Dec 2009 19:31:45 +0200</pubDate>
        </item>
</channel>
</rss>