<?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: Inline mode and session expired problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem</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/inline-mode-and-session-expired-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1257</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1257</guid>
        	        	<description><![CDATA[<p>Thanks</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Jul 2008 03:02:14 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1256</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1256</guid>
        	        	<description><![CDATA[<p>Ok tony,</p>
</p>
<p>I have sended you the grid.inline.js.</p>
<p>thanks.</p>
</p>
<p>Josep Escofet</p>
]]></description>
        	        	<pubDate>Fri, 25 Jul 2008 02:32:41 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1255</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1255</guid>
        	        	<description><![CDATA[<p>Hi Josep,</p>
<p>You can send me the code to tony at trirand.com</p>
<p>Thank you</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 25 Jul 2008 02:14:03 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1254</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1254</guid>
        	        	<description><![CDATA[<p>If somebody wants de grid.inline.js modified ask me , and I send my</p>
<p>copy with the problem of onerrorfunc solved(session expired,</p>
<p>error saving on server) and with another</p>
<p>function afterCancelFunc a callback function that is called when</p>
<p>the ESC key is pressed on a row.</p>
</p>
<p><a href="mailto:josepk.basura@gmail.com" target="_blank">josepk.basura@gmail.com</a></p>
</p>
<p>thanks.</p>
<p>Josep Escofet</p>
]]></description>
        	        	<pubDate>Fri, 25 Jul 2008 01:50:45 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1244</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1244</guid>
        	        	<description><![CDATA[<p>The code is not all visible on the screen , there is some method for post the</p>
<p>code correctly ?</p>
<p>Tony, do you want to put this for all?</p>
</p>
<p>thanks.</p>
</p>
<p>Josep Escofet</p>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2008 07:21:02 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1243</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1243</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have finished the solution and I posted here, I put the full complet</p>
<p>saveRow function, the only think that I have made is to change the</p>
<p>call to $.post for $.call and clean some code not necessary.</p>
<p>This functions resolves the problem of session expired when</p>
<p>you are going to make a row to save and if there is a problem</p>
<p>saving row on server and it responds with some error code</p>
<p>(400, 404,500....) not 200 OK code.</p>
</p>
<p>saveRow : function(rowid, succesfunc, url, extraparam, aftersavefunc,errorfunc) {<br />&#160;&#160;&#160; &#160;&#160;&#160; return this.each(function(){<br />&#160;&#160;&#160; &#160;&#160;&#160; var $t = this, nm, tmp={}, tmp2, editable, fr;<br />&#160;&#160;&#160; &#160;&#160;&#160; if (!$t.grid ) return;<br />&#160;&#160;&#160; &#160;&#160;&#160; editable = $(&#39;#&#39;+rowid,$t.grid.bDiv).attr("editable");<br />&#160;&#160;&#160; &#160;&#160;&#160; url = url ? url : $t.p.editurl;<br />&#160;&#160;&#160; &#160;&#160;&#160; if (editable==="1" &#38;&#38; url) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;#&#39;+rowid+" td",$t.grid.bDiv).each(function(i) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; nm = $t.p.colModel[i].name;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if ( nm !== &#39;cb&#39; &#38;&#38; nm !== &#39;subgrid&#39; &#38;&#38; $t.p.colModel[i].editable===true) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if( $t.p.colModel[i].hidden===true) tmp[nm] = $(this).html();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else if( $t.p.colModel[i].edittype===&#39;checkbox&#39;) tmp[nm]=&#160; $("input",this).attr("checked") ? 1 : 0;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else tmp[nm]= $("input, select&#62;option:selected, textarea",this).val();<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; });<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(tmp) { tmp["id"] = rowid; if(extraparam) $.extend(tmp,extraparam);}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if(!$t.grid.hDiv.loading) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $t.grid.hDiv.loading = true;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("div.loading",$t.grid.hDiv).fadeIn("fast");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $.ajax({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; type: "POST",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; url: url,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; data: tmp,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; error: function (XMLHttpRequest, textStatus, errorThrown) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; if(typeof errorfunc == "function") {<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; errorfunc(XMLHttpRequest.responseText,textStatus+": "+XMLHttpRequest.status);<br />&#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; alert("Error Row: "+rowid+" Result: " +res+" Status: "+stat);<br />&#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; success: function(res,stat){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; var ret;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if( typeof succesfunc === "function") ret = succesfunc(res);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; else ret = true;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if (ret===true) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;#&#39;+rowid+" td",$t.grid.bDiv).each(function(i) {<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; nm = $t.p.colModel[i].name;<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; if ( nm !== &#39;cb&#39; &#38;&#38; nm !== &#39;subgrid&#39; &#38;&#38; $t.p.colModel[i].editable===true) {<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; switch ($t.p.colModel[i].edittype) {<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; case "select":<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; tmp2 = $("select&#62;option:selected", this).text();<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; break;<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; case "checkbox":<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; var cbv = $t.p.colModel[i].editoptions.value.split(":") &#124;&#124; ["Yes","No"];<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; tmp2 = $("input",this).attr("checked") ? cbv[0] : cbv[1];<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; break;<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; case "text":<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; case "textarea":<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; tmp2 = $("input, textarea", this).val();<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; break;<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; }<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; $(this).empty();<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; $(this).html(tmp2 &#124;&#124; "&#38;nbsp;");<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; }<br />&#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; $(&#39;#&#39;+rowid,$t.grid.bDiv).attr("editable","0");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; for( var k=0;k&#60;$t.p.savedRow.length;k++) {<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; if( $t.p.savedRow[k].id===rowid) {fr = k; break;}<br />&#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; if(fr &#62;= 0) $t.p.savedRow.splice(fr,1);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; if( typeof aftersavefunc === "function") aftersavefunc(rowid,res);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; } else $($t).restoreRow(rowid);<br />&#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; }<br />&#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; $t.grid.hDiv.loading = false;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("div.loading",$t.grid.hDiv).fadeOut("fast");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $("#"+rowid,$t.grid.bDiv).unbind("keydown");<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; }<br />&#160;&#160;&#160; &#160;&#160;&#160; });</p>
<p>thanks.</p>
</p>
<p>Josep Escofet</p>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2008 07:18:52 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1242</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1242</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I have found the solution, now I am cleaning the code and doing</p>
<p>the last test... and after I will post the solution.</p>
<p>The key is not to use $.post function becouse this function</p>
<p>doesnt call the callback function in case of the response is not success,</p>
<p>then if you use the $.ajax fucntion with onerror: callback function.</p>
<p>I have tested the first solution and it works.</p>
<p>When I finished the code I will post, perhaps later or tomorrow.</p>
<p>this solution catches the session expired too.</p>
<p>thanks.</p>
<p>Josep escofet</p>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2008 06:21:28 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1241</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1241</guid>
        	        	<description><![CDATA[<p>Hi tony,</p>
<p>I have look the code again and I think that your solution is</p>
<p>wrong becouse the callback function is never called if the</p>
<p>response of the server is not success, then the if into the function</p>
<p>that says : if (stat === "success"){ is never called if the response</p>
<p>is wrong becouse the callback function is never called.</p>
<p>I have tested it and if the response is success the function is</p>
<p>called, but if it is wrong (404, 500....) the function is never called,</p>
<p>just put an alert before if (stat === "success") and you will see that</p>
<p>the function is never called.</p>
</p>
<p>thanks,&#160; I am going to see in the documentation of jquery to use</p>
<p>another ajax call that catch the error.</p></p>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2008 04:23:06 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1240</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1240</guid>
        	        	<description><![CDATA[<p>Simple - if you have FireBug you can easy look what is returned</p>
<p>from the server.</p>
<p>In inline edit there is a line</p>
<p>$.post("someurl", function(request,status) {</p>
<p>if(status==&#39;success&#39;) {</p>
<p>....</p>
<p>This mean that the status returned from the server has a</p>
<p>value success.</p>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2008 03:24:07 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1239</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1239</guid>
        	        	<description><![CDATA[<p>I think that this is not the problem, with my last test , I</p>
<p>have the session active, and I forced an error on every row</p>
<p>save, with a header(404) or (500) and the function onerrorfunc</p>
<p>is never called, then I look at inline.js and I have found :</p>
<p>$.post(url,tmp,function(res,stat){ function on saveRow.</p>
<p>I have looking at documentation on jquery and I have</p>
<p>found that :</p>
<p><em>This is an easy way to send a simple POST request to a server </em></p>
<p><em>without having to use the more complex $.ajax function. It </em></p>
<p><em>allows a single callback function to be specified that will be executed</em></p>
<p><em> when the request is complete </em></p>
<p><strong><em>(and only if the response has a successful response code).</em></strong></p>
<p>then in case of error (404, 500,...) the onerrorfunc is never called.</p>
<p>is it ok? Is it a bug?</p>
</p>
<p>thanks.</p>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2008 03:10:20 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1238</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1238</guid>
        	        	<description><![CDATA[<p>Yes the server detect this and return a regular html page</p>
<p>which is interpreted normal in jqGrid.</p>
<p>You should detect that session is expired and</p>
<p>send the appropriate headers so that jqGrid</p>
<p>can interpret this. I think there was such</p>
<p>post in the forum</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2008 02:44:03 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1235</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1235</guid>
        	        	<description><![CDATA[<p>I send again the functions.</p>
<p>jQuery(grid).editRow(actualRow, true, null, errorAjaxServer,</p>
<p>url, null, checkSave, onErrorServer);</p>
</p>
<p>jQuery(grid).saveRow(actualRow, errorAjaxServer, url,</p>
<p>null, checkSave, onErrorServer);</p>
</p>
<p>function onErrorServer(rowid, result){<br />&#160;&#160;&#160; alert(rowid +" ---&#62; "+result);<br />}</p>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2008 02:23:10 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1233</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1233</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I have been another test, when I modify a row and the row is saved to</p>
<p>the server, I am throwing and error(404) with java</p>
<p>( response.sendError(404) ) and the onerrorfunc is not called.</p>
<p>But my application detects it and send to the client a page with the custom</p>
<p>error for 404, but the grid doesnt catch it.</p>
<p>I am calling the onerrorfunc :</p>
<p>jQuery(grid).editRow(actualRow, true, null, errorAjaxServer, url, null, checkSave, onErrorServer);</p>
<p>jQuery(grid).saveRow(actualRow, errorAjaxServer, url, null, checkSave, onErrorServer);</p>
<p>function onErrorServer(rowid, result){<br />&#160;&#160;&#160; alert(rowid +" ---&#62; "+result);<br />}</p>
<p>I send you the firebug headers :</p>
</p>
<p>tanks.</p>
</p>
<table class="netInfoHeadersText netInfoText netInfoHeadersTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr class="netInfoResponseHeadersTitle">
<td colspan="2">
<div class="netInfoHeadersGroup"><strong>Encabezados de la Respuesta</strong></div>
</td>
</tr>
<tr>
<td class="netInfoParamName">Server</td>
<td class="netInfoParamValue">Apache-Coyote/1.1</td>
</tr>
<tr>
<td class="netInfoParamName">Content-Type</td>
<td class="netInfoParamValue">text/html;charset=ISO-8859-1</td>
</tr>
<tr>
<td class="netInfoParamName">Transfer-Encoding</td>
<td class="netInfoParamValue">chunked</td>
</tr>
<tr>
<td class="netInfoParamName">Date</td>
<td class="netInfoParamValue">
<p>Thu, 24 Jul 2008 07:11:31 GMT</p>
</p>
</td>
</tr>
<tr class="netInfoRequestHeadersTitle">
<td colspan="2">
<div class="netInfoHeadersGroup"><strong>Encabezados de la Solicitud</strong></div>
</td>
</tr>
<tr>
<td class="netInfoParamName">Host</td>
<td class="netInfoParamValue">localhost:8080</td>
</tr>
<tr>
<td class="netInfoParamName">User-Agent</td>
<td class="netInfoParamValue">Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1</td>
</tr>
<tr>
<td class="netInfoParamName">Accept</td>
<td class="netInfoParamValue">*/*</td>
</tr>
<tr>
<td class="netInfoParamName">Accept-Language</td>
<td class="netInfoParamValue">es-es,es;q=0.8,en-us;q=0.5,en;q=0.3</td>
</tr>
<tr>
<td class="netInfoParamName">Accept-Encoding</td>
<td class="netInfoParamValue">gzip,deflate</td>
</tr>
<tr>
<td class="netInfoParamName">Accept-Charset</td>
<td class="netInfoParamValue">ISO-8859-1,utf-8;q=0.7,*;q=0.7</td>
</tr>
<tr>
<td class="netInfoParamName">Keep-Alive</td>
<td class="netInfoParamValue">300</td>
</tr>
<tr>
<td class="netInfoParamName">Connection</td>
<td class="netInfoParamValue">keep-alive</td>
</tr>
<tr>
<td class="netInfoParamName">Content-Type</td>
<td class="netInfoParamValue">application/x-www-form-urlencoded; charset=UTF-8</td>
</tr>
<tr>
<td class="netInfoParamName">X-Requested-With</td>
<td class="netInfoParamValue">XMLHttpRequest</td>
</tr>
<tr>
<td class="netInfoParamName">Referer</td>
<td class="netInfoParamValue"><a href="http://localhost:8080/previsoraWeb/acciones/suplementos/doSuplementoPoliza.do?operacion=doDetalleSuplemento&#038;u=1&#038;r=4&#038;p=17030&#038;t=GARBEN+CONSULTORES+S.L" rel="nofollow" target="_blank"><a href="http://localhost:8080/previsor" rel="nofollow">http://localhost:8080/previsor</a>.....LTORES+S.L</a>.</td>
</tr>
<tr>
<td class="netInfoParamName">Content-Length</td>
<td class="netInfoParamValue">36</td>
</tr>
<tr>
<td class="netInfoParamName">Cookie</td>
<td class="netInfoParamValue">JSESSIONID=20CDA64E387CCEE86A27DBF0FC16A080</td>
</tr>
</tbody>
</table>
]]></description>
        	        	<pubDate>Thu, 24 Jul 2008 02:20:08 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1217</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1217</guid>
        	        	<description><![CDATA[<p>How do yo call onerrorfunc?</p>
]]></description>
        	        	<pubDate>Wed, 23 Jul 2008 08:25:33 +0300</pubDate>
        </item>
        <item>
        	<title>josepk on Inline mode and session expired problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1209</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/inline-mode-and-session-expired-problem#p1209</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have instaled the 3.2 version, I have a problem with the inline mode</p>
<p>editing:</p>
<p>When the grid is loaded and the session expired, then when you just</p>
<p>modify a row and it makes a call for saving to the server, it responds</p>
<p>with a header (404) and a page of error, but the jgrid isnt saying anything.</p>
<p>I have tryed to catch these errors with :</p>
<p><em>succesfunc,</em></p>
<pre>aftersavefunc,<br /><br /><em>onerrorfunc,<br /><br />but anything of these arent called when the session is expired and the row <br />makes a call to the server for saving the changes.<br />I see that in firebug the server responds with the page of error and it is <br />of  red color indicating that the call is wrong.<br />But these functions are never called. I have tryed too with (500 error <br />header).<br /><br />I need to catch this situation..... but my ideas have been expired....<br /><br />Something idea?<br /><br />thanks.<br />Josep Esofet<br /><br /><br /><br /></em></pre>
]]></description>
        	        	<pubDate>Wed, 23 Jul 2008 04:49:53 +0300</pubDate>
        </item>
</channel>
</rss>