<?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: ret is undefined</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined</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/ret-is-undefined/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rsea on ret is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4579</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4579</guid>
        	        	<description><![CDATA[<p>Ok&#8230; I won the &#8220;stupid of the year&#8221;&#160; prize.</p>
<p>The part:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8146' value='Select Code' data-codeid='sfcode8146' /></p>
<div class='sfcode' id='sfcode8146'>afterSubmit: function(){<br />&#160;&#160;&#160;&#160;&#160; var rows = $(&#39;#list&#39;).getGridParam(&#39;rowNum&#39;);<br />&#160;&#160;&#160;&#160;&#160; rows = rows + 1;<br />&#160;&#160;&#160;&#160;&#160; $(&#39;#list&#39;).setGridParam({rowNum: rows});<br />&#160;&#160;&#160; }</div>
</p>
<p>was the problem. And there was no real need for it..</p>
<p>It is all okay now, except for how turn off the loadui form saving/editing modal and the alignment problem which is in another post&#8230;</p>
<p>Thank you!</p>
<p>Rodolfo.</p>
]]></description>
        	        	<pubDate>Wed, 11 Feb 2009 16:18:51 +0200</pubDate>
        </item>
        <item>
        	<title>rsea on ret is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4568</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4568</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Usually I ask them to return {status: 0} if ok or an error code otherwise. I&#39;ve tried to echo [true] and I still get the &#8220;updating database&#8221;/ajax busy message, tried [true,&#39;&#39;] too and nothing. \\</p>
<p>When you said there was an option for this you mean the &#8220;afterSubmit&#8221; event ? (im using editGridRow)</p>
<p>BTW how I disable the red message? I have a personalized one&#8230; disabling at the grid didnt disabled this one.</p>
<p>Thank you,</p>
<p>Rodolfo.</p>
<p>&#62;&#62; Edit: I don&#39;t get the ret undefined message anymore. but the add modal is still on top and dont close, actually, stop responding and the ajax busy message don&#39; t disappear.</p>
<p>The code I use to add a row:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9795' value='Select Code' data-codeid='sfcode9795' /></p>
<div class='sfcode' id='sfcode9795'>function addrow(table) {<br />&#160; $("#"+table).editGridRow( "new" ,{<br />&#160;&#160;&#160; url: &#39;/services/add_item.php&#39;,<br />&#160;&#160;&#160; width : 420, height: 510,<br />&#160;&#160;&#160; closeAfterAdd: true,<br />&#160;&#160;&#160; afterSubmit: function(){<br />&#160;&#160;&#160;&#160;&#160; var rows = $("#"+table).getGridParam(&#39;rowNum&#39;);<br />&#160;&#160;&#160;&#160;&#160; rows = rows + 1;<br />&#160;&#160;&#160;&#160;&#160; $("#"+table).setGridParam({rowNum: rows});<br />&#160;&#160;&#160; }<br />&#160; });<br />};</div></p>
]]></description>
        	        	<pubDate>Wed, 11 Feb 2009 02:59:58 +0200</pubDate>
        </item>
        <item>
        	<title>tony on ret is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4565</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4565</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>There is a option for this. Look into the docs. Look at your events. Some of them must return [true,&#39;&#39;] or [false,&#39;&#39;]. Look if you request is valid. What they return?</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 11 Feb 2009 00:36:01 +0200</pubDate>
        </item>
        <item>
        	<title>rsea on ret is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4555</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4555</guid>
        	        	<description><![CDATA[<p>Ok. I fixed the error but the ajax still dont finish its request, the Loading... message dont disapear.&#160; I was wrong about the other grid being fine. It haves the same problem, I add an item but the add modal dont close after success.</p>
<p>Help?</p>
<p>Rodolfo.</p>
]]></description>
        	        	<pubDate>Tue, 10 Feb 2009 22:48:09 +0200</pubDate>
        </item>
        <item>
        	<title>rsea on ret is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4554</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/ret-is-undefined#p4554</guid>
        	        	<description><![CDATA[<p>Hello</p>
<p>When I add an item to my grid I get this error:</p>
<p><span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"></span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit4147' value='Select Code' data-codeid='sfcode4147' /></p>
<div class='sfcode' id='sfcode4147'>
<div class="errorTitle">ret is undefined</div>
<div class="errorTrace">
<div class="objectBox objectBox-stackFrame"><a class="objectLink" target="_blank">complete()</a>()<span class="objectLink-sourceLink objectLink">grid.formedit.js (linha 300)</span></div>
<div class="objectBox objectBox-stackFrame"><a class="objectLink" target="_blank">complete</a>()<span class="objectLink-sourceLink objectLink">jquery.js (linha 3533)</span></div>
<div class="objectBox objectBox-stackFrame"><a class="objectLink" target="_blank">onreadystatechange()</a>()<span class="objectLink-sourceLink objectLink">jquery.js (linha 3485)</span></div>
</div>
<div class="errorSourceBox errorSource-exec">&#62; [Image Can Not Be Found]<span class="errorSource"> if(ret[0] === false) {</span></div>
</div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">What happens is that the save windows is not closed and the ajax request don&#39;t finish. When I check my DB the item was added, if I reload (F5) it appears on the grid.</div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">I&#39;m not sure what is this. I tried to find out if was the return message I sendfrom server side file but the other grid I have works just like this one and works fine&#8230;</div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">What am I missing?</div>
<div class="errorSourceBox errorSource-exec"></div>
<div class="errorSourceBox errorSource-exec">Thanks,</div>
<div class="errorSourceBox errorSource-exec">Rodolfo</div></p>
]]></description>
        	        	<pubDate>Tue, 10 Feb 2009 22:04:54 +0200</pubDate>
        </item>
</channel>
</rss>