<?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: handling 500 error</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/handling-500-error</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/handling-500-error/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>gowger on handling 500 error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/handling-500-error#p16722</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/handling-500-error#p16722</guid>
        	        	<description><![CDATA[<p>In the struts plugin that I am using then I found that I had to use</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1710' value='Select Code' data-codeid='sfcode1710' /></p>
<div class='sfcode' id='sfcode1710'>onErrorTopics=&#34;error&#34;
</div>
<p>and then I have the function to redirect to the logout page like this:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1985' value='Select Code' data-codeid='sfcode1985' /></p>
<div class='sfcode' id='sfcode1985'>
<p>$.subscribe(&#39;error&#39;, function(event, data) {<br />&#160;&#160;&#160; $(location).attr(&#39;href&#39;,&#34;logoutAction&#34;);<br />})</p>
</div>
<p>It is the struts plugin which appears to have been getting in the way of the loadComplete as well as a few of the other events, and attempting to override the defaults doesn&#39;t help.</p></p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 19:48:09 +0300</pubDate>
        </item>
        <item>
        	<title>gowger on handling 500 error</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/handling-500-error#p16711</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/handling-500-error#p16711</guid>
        	        	<description><![CDATA[<p>Hi there,</p>
</p>
<p>I&#39;m trying to get the loadError event to fire so that I can redirect the user to the my login page. When I make the server return a 500 error then I expected the event to be triggered but it doesn&#39;t.</p>
<p>I&#39;m setting the loadError function like this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1945' value='Select Code' data-codeid='sfcode1945' /></p>
<div class='sfcode' id='sfcode1945'>&#160;&#160;&#160; loadError: function(xhr, textStatus, errorThrown) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#34;Ajax Error occurred\n&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; + &#34;\nstatus is: &#34; + xhr.status<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; + &#34;\ntextStatus is: &#34; + textStatus<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; + &#34;\nerrorThrown is: &#34; + errorThrown<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; );<br />&#160;&#160;&#160; },</div>
</p>
<p>If I use the following jquery ajax call then I do get the error event and can display the error status.&#160;&#160;&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2730' value='Select Code' data-codeid='sfcode2730' /></p>
<div class='sfcode' id='sfcode2730'>jQuery.ajax({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; type: &#34;POST&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#34;<a href="http://localhost:8080/webauth/jsontable?accountid=0&#038;quot" rel="nofollow" target="_blank"><a href="http://localhost:8080/webauth/" rel="nofollow">http://localhost:8080/webauth/</a>.....&#038;quot</a>;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; dataType:&#34;json&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; error:function (xhr, ajaxOptions, thrownError) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#34;Ajax Error occurred\n&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; + &#34;\nstatus is: &#34; + xhr.status<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; + &#34;\nthrownError is: &#34; + thrownError<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; + &#34;\najaxOptions is: &#34; + ajaxOptions<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; }<br />&#160;&#160;&#160; });</div>
</p>
<p>any idea what I need to do to trigger the loadError event?&#160;</p>
</p>
<p>Thanks in advance!</p>
]]></description>
        	        	<pubDate>Mon, 26 Apr 2010 16:04:08 +0300</pubDate>
        </item>
</channel>
</rss>