<?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: Server Side Form Validation</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation</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/feature-request/server-side-form-validation/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>LimoWanKenobi on Server Side Form Validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4750</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4750</guid>
        	        	<description><![CDATA[<p>what a shame... my bad... I just realized that I can do it with&#160;loadError.</p>
</p>
<p>sorry</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 12:24:46 +0200</pubDate>
        </item>
        <item>
        	<title>LimoWanKenobi on Server Side Form Validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4749</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4749</guid>
        	        	<description><![CDATA[<p>I just realized that the afterSubmit event is usable only when editing the data.</p>
<p>I would like a way to handle the errors when loading the data too.</p>
<p>Right now I haven&#39;t found a clean solution. Do you have one? 😀</p>
<p>Any way, I&#39;ll keep looking.</p>
<p>Thanx!</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 12:02:14 +0200</pubDate>
        </item>
        <item>
        	<title>LimoWanKenobi on Server Side Form Validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4745</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4745</guid>
        	        	<description><![CDATA[<p>Hi Tony.</p>
<p>As a lot people says, you rock. 😛</p>
<p>I thank your post about this. I was looking for a way of doing it.&#160;</p>
<p>What I would like is a way to make this the default behavior. Lets say, If anything goes ok, you could return the data as currently we do, and if an error ocurrs, return the string "error:error message". The jqGrid could provide an onError handler. For example:</p>
<p>onError: function(errorMessge) {</p>
<p><span style="white-space: pre;"> </span>alert(errorMessage);</p>
<p>}</p>
<p>This way we could provide an easy way of error handling.</p>
<p>What do you say?</p>
]]></description>
        	        	<pubDate>Thu, 19 Feb 2009 10:46:10 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Server Side Form Validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4398</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4398</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is possible and I use this technique in all my projects.</p>
<p>afterSubmit : function (data, postdata) {</p>
<p>// data is the data returned from your server</p>
<p>// postdata is the array posted to the server</p>
<p>// this event should return array indicating if the post is ok</p>
<p>// Suppose you return text from server something like</p>
<p>// error: The post has error for error; and ok:data is ok if ok</p>
<p>// then</p>
<p>result = data.responseText.split(":");</p>
<p>if (result[0] = "error" ) {</p>
<p>return [false,result[1],""];</p>
<p>} else {</p>
<p>return [true,"",""];</p>
<p>}</p>
</p>
<p>Hope this help</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 05 Feb 2009 02:42:29 +0200</pubDate>
        </item>
        <item>
        	<title>melissa on Server Side Form Validation</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4342</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/server-side-form-validation#p4342</guid>
        	        	<description><![CDATA[<p>Hi, I would like to perform server side validation that returns a list of errors, when a user has edited a row in the grid, before saving to the database.</p>
<p>On error I would like to stop the cancel the update, display the row, and the error message.</p>
<p>With the current functions I can&#39;t seem to do this.</p>
<p>afterSubmit: this doesn&#39;t allow me to return data from the server</p>
<p>beforeSubmit:&#160; if I do my own $.post request I can get my json data back but cannot return true/false.</p>
]]></description>
        	        	<pubDate>Tue, 03 Feb 2009 19:37:51 +0200</pubDate>
        </item>
</channel>
</rss>