<?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: onclickSubmit and beforeSubmit...</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/onclicksubmit-and-beforesubmit</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/bugs/onclicksubmit-and-beforesubmit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on onclickSubmit and beforeSubmit...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/onclicksubmit-and-beforesubmit#p2146</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/onclicksubmit-and-beforesubmit#p2146</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Good recomendation and have sence. I will see haw to implement</p>
<p>this recommendation.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 20 Sep 2008 05:29:24 +0300</pubDate>
        </item>
        <item>
        	<title>globalisateur on onclickSubmit and beforeSubmit...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/onclicksubmit-and-beforesubmit#p2143</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/onclicksubmit-and-beforesubmit#p2143</guid>
        	        	<description><![CDATA[<p>Hi!</p>
<p>After hours of madness I decided to ask for help:</p>
<p>I just want "simply" to modify (use escape() function on the string values) the data posted to the server via a editGridRow</p>
<p>I tried everything I saw on this forum and tried all the docs but only found this bizarre solution:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit370' value='Select Code' data-codeid='sfcode370' /></p>
<div class='sfcode' id='sfcode370'>
<p><span style="color: #000000; font-family: Tahoma; ">&#160;&#160;beginning of the code:</span></p>
</div>
<p>,onclickSubmit : function(eparams) {</p>
<p><span style="white-space:pre"> </span>var sr = jQuery("#listHsereport").getGridParam(&#39;selrow&#39;);</p>
<p>rowdata = jQuery("#listHsereport").getRowData(sr);</p>
<p>alert(rowdata.title); // show ancient value of the field or undefined if in a //new row</p>
<p>return {title:escape(jQuery("#title",currentFormid).val())};// the only solution I found to send &#39;title&#39; parameter after escape() work. the currentFormid is the form_id stored in a perso value (currentFormid) in&#160;beforeShowForm function</p>
<p>}</p>
<p>,beforeSubmit : function(data) {</p>
<p>&#160;&#160; &#160; var sr = jQuery("#listHsereport").getGridParam(&#39;selrow&#39;);</p>
<p>&#160;&#160; &#160;<span>&#160;</span>rowdata = jQuery("#listHsereport").getRowData(sr);</p>
<p>&#160;&#160; &#160;<span>&#160;</span>alert(rowdata.title); // Show ancient value</p>
<p>&#160;&#160; &#160;<span>&#160;</span>alert(data.title); // show the good modified value, but how I modify it //with escape() and send it to the post data?, the return value should have //the ability to send new parameters as in theonclickSubmit function</p>
<p>&#160;&#160; &#160;</p>
<p>return [true,""];</p>
<p>} // I noted that this function actually performs after the onclickSubmit...</p>
</p>
<p>Anyway, it&#39;s working now (needed escape function for escaping special characters as &#233; or &#232;), but does any proper way exist without my currentFormid var?</p>
<p>Cordialy,</p>
<p>Geoffroy</p></p>
]]></description>
        	        	<pubDate>Fri, 19 Sep 2008 17:09:17 +0300</pubDate>
        </item>
</channel>
</rss>