<?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: display a message after post ?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/display-a-message-after-post</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/display-a-message-after-post/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>cvneo on display a message after post ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/display-a-message-after-post#p23807</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/display-a-message-after-post#p23807</guid>
        	        	<description><![CDATA[<p>I tested it but it does not work well:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4140' value='Select Code' data-codeid='sfcode4140' /></p>
<div class='sfcode' id='sfcode4140'>
<p>&#8230;</p>
<p>onSelectRow: function(id){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(id &#38;&#38; id!==lastsel){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#Roles&#39;).jqGrid(&#39;saveRow&#39;,lastsel,function(response, postdata){ <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; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;data = eval (&#34;(&#34; + response.responseText + &#34;)&#34;); <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; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;alert(data.msg);<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; &#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;jQuery(&#39;#Roles&#39;).jqGrid(&#39;restoreRow&#39;,lastsel);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#Roles&#39;).jqGrid(&#39;editRow&#39;,id,true); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;lastsel=id; <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>&#8230;</p>
</div>
<p>&#160;&#160; &#160;&#160; This way it works against the best by alert () not working and I can not retrieve the message has returned from the server: ( &#160;&#160;&#160; &#160;&#160;&#160;&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9764' value='Select Code' data-codeid='sfcode9764' /></p>
<div class='sfcode' id='sfcode9764'>onSelectRow: function(id){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(id &#38;&#38; id!==lastsel){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#Roles&#39;).jqGrid(&#39;saveRow&#39;,lastsel);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#Roles&#39;).jqGrid(&#39;restoreRow&#39;,lastsel);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#Roles&#39;).jqGrid(&#39;editRow&#39;,id,true,null,function(response, postdata){<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; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;alert(&#39;erreur&#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; &#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;&#160;&#160; &#160;lastsel=id; <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;},</div>
]]></description>
        	        	<pubDate>Wed, 29 Jun 2011 17:37:00 +0300</pubDate>
        </item>
        <item>
        	<title>cvneo on display a message after post ?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/display-a-message-after-post#p23802</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/display-a-message-after-post#p23802</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p> I would like after the addition or modification of a line, display a message (via a message box alert ()) that the server retrounerait:</p>
<p> eg "update done"</p>
<p> But I do not find in the doc if this is possible and how: (</p>
<p>I tested it :<br />onSelectRow: function(id){<br />&#160; if(id &#38;&#38; id!==lastsel){ <br />&#160;&#160; &#160;&#160; jQuery(&#39;#Roles&#39;).jqGrid(&#39;saveRow&#39;,lastsel,&#39;&#39;,&#39;&#39;,alert(toto));</p>
<p>&#160; }</p>
<p>}</p>
<p>but I do not know how to have the opportunity to start my message with the alert message from the server</p>
<p>Thank you for your help</p>
]]></description>
        	        	<pubDate>Wed, 29 Jun 2011 12:01:06 +0300</pubDate>
        </item>
</channel>
</rss>