<?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: Call function after switching page</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/call-function-after-switching-page</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/call-function-after-switching-page/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>mascott on Call function after switching page</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/call-function-after-switching-page#p22807</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/call-function-after-switching-page#p22807</guid>
        	        	<description><![CDATA[<blockquote>
<p>i tried using gridComplete</p>
</blockquote>
<p>Why not loadComplete?</p>
]]></description>
        	        	<pubDate>Sat, 16 Apr 2011 15:00:34 +0300</pubDate>
        </item>
        <item>
        	<title>strgg on Call function after switching page</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/call-function-after-switching-page#p22791</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/call-function-after-switching-page#p22791</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>After pageload (document ready) i call this function to alter all links (a href)</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1366' value='Select Code' data-codeid='sfcode1366' /></p>
<div class='sfcode' id='sfcode1366'>&#160;&#160; $(&#39;a.classy&#39;).bind(&#39;click&#39;,function(event){<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;event.preventDefault();<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;$.get(this.href,{},function(response){ <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; $(&#39;#response&#39;).html(response);<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; })</div>
</p>
<p>Now the "problem" is if i click f.e. "next" on the pager, then the newly loaded data does not have this alternation on the links.</p>
<p>i tried using gridComplete</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9649' value='Select Code' data-codeid='sfcode9649' /></p>
<div class='sfcode' id='sfcode9649'>jQuery(&#34;#gridid&#34;).jqGrid({<br />gridComplete: function(){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160; $(&#39;a.classy&#39;).bind(&#39;click&#39;,function(event){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;event.preventDefault();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $.get(this.href,{},function(response){ <br />&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160; &#160;&#160;&#160; $(&#39;#response&#39;).html(response);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; })&#160;&#160; &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160; })<br />&#160;&#160; }<br />});</div>
</p>
<p>it did not work. Is the scope of gridComplete reaching to the new ajax-load by requesting another page?<br />Maybe i am completely at the wrong road :/ . How could this be achieved?</p>
<p>thanks very much for a small hint.</p>
</p>
<p>Kind Regards,<br />Gerome</p>
]]></description>
        	        	<pubDate>Fri, 15 Apr 2011 04:54:44 +0300</pubDate>
        </item>
</channel>
</rss>