<?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: Handle exceptions on submit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/handle-exceptions-on-submit</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/handle-exceptions-on-submit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>bogoa666 on Handle exceptions on submit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/handle-exceptions-on-submit#p26662</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/handle-exceptions-on-submit#p26662</guid>
        	        	<description><![CDATA[<p>Hi, at the end, the event i need was &#39;errorTextFormat&#39; to catch the response message but how? I will explain my solution for adding an item to my table:</p>
<p>jQuery (client)</p>
<p>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; jQuery("#mytable_table").navButtonAdd(&#39;#mytable_pager&#39;, {caption: "", title: "Add", buttonicon: "ui-icon-plus", position: "first", <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; onClickButton: function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;jQuery("#mytable_table").jqGrid(&#39;editGridRow&#39;, "new", {jqModal:true, modal:true, reloadAfterSubmit:true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;closeAfterAdd:true, jqModal: true, recreateForm:true, top: 200, left: 520, width: 400, height: 160,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; errorTextFormat: function (response) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (response.status != &#39;200&#39;) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return &#39;error: &#39; + response.responseText;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return &#39;Save ok!&#39;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;}); &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }); </p>
<p>JAVA (server)</p>
<p> response.status = 300; // any status code different to 200<br /> response.print("my error message");</p>
]]></description>
        	        	<pubDate>Thu, 24 May 2012 16:20:30 +0300</pubDate>
        </item>
        <item>
        	<title>bogoa666 on Handle exceptions on submit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/handle-exceptions-on-submit#p26630</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/handle-exceptions-on-submit#p26630</guid>
        	        	<description><![CDATA[<p>Seems like I should use the afterSubmit form event. The documentation is here for other people who was interesting in: <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....rm_editing</a></p>
<p>I&#39;ll try to solve my problem and post it here</p>
]]></description>
        	        	<pubDate>Fri, 18 May 2012 16:23:29 +0300</pubDate>
        </item>
        <item>
        	<title>bogoa666 on Handle exceptions on submit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/handle-exceptions-on-submit#p26610</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/handle-exceptions-on-submit#p26610</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I want to know how to handler exceptions in server side on submit. For example, i have an add form and i want to show an error if the object that represents this form is repeated. A person with the same passport.</p>
</p>
<p>Thanks</p>
]]></description>
        	        	<pubDate>Wed, 16 May 2012 22:46:45 +0300</pubDate>
        </item>
</channel>
</rss>