<?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: editurl not changed</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed</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/bugs/editurl-not-changed/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Yajo on editurl not changed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11576</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11576</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>I just tried, and it fails the same way, so I started to look for the error and finally I found it.. it&#39;s mine <img class="spSmiley" style="margin:0" title="Frown" src="/blog/wp-content/forum-smileys/sf-frown.gif" alt="Frown" /></p>
<p>I&#39;m very sorry to make you lose your time. My problem was in the editRow function. It has one parameter for the editurl, and I was passing there the same value all the time.</p>
<p>By the way, when trying the 3.6RC I got a new error ("val is null") and had to change line 587 of grid.common.js to:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9957' value='Select Code' data-codeid='sfcode9957' /></p>
<div class='sfcode' id='sfcode9957'>if (val == null &#124;&#124; val.match(/^s+$/) &#124;&#124; val == "")&#160;&#160;&#160; {</div>
<p>I hope it&#39;s useful to you.</p>
<p>Thanks and sorry again,</p>
<p>Yajo.</p>
]]></description>
        	        	<pubDate>Fri, 06 Nov 2009 03:10:17 +0200</pubDate>
        </item>
        <item>
        	<title>tony on editurl not changed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11546</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11546</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Could you please try with the jqGrid3.6RC</p>
<p>Thanks</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 05 Nov 2009 09:28:53 +0200</pubDate>
        </item>
        <item>
        	<title>Yajo on editurl not changed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11525</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11525</guid>
        	        	<description><![CDATA[<p>Hi, Tony,</p>
<p>I use it to filter the grid, when the user changes the value of some filters. Details:</p>
<p>I have a couple of custom inputs with default values as follows:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1435' value='Select Code' data-codeid='sfcode1435' /></p>
<div class='sfcode' id='sfcode1435'>
<p>&#60;input id="desde" value="01/11/2009" onchange="changeFiltroFecha(this);" /&#62;</p>
<p>&#60;input id="hasta" value="30/11/2009" onchange="changeFiltroFecha(this);" /&#62;</p>
</div>
<p>And the default value for editurl is:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit596' value='Select Code' data-codeid='sfcode596' /></p>
<div class='sfcode' id='sfcode596'>"?desde=01/11/2009&#38;hasta=30/11/2009&#38;action=autoJqGridRequest"</div>
<p>Both inputs have a onchange event wich calls to this function, which replaces the corresponding parameter into the url string:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7814' value='Select Code' data-codeid='sfcode7814' /></p>
<div class='sfcode' id='sfcode7814'>function changeFiltroFecha(elem){<br />&#160;&#160; &#160;elem = jQuery(elem);<br />&#160;&#160; &#160;var grid = jQuery(&#39;#grid_cuadranteAzafatas&#39;);<br />&#160;&#160; &#160;grid.setGridParam({<br />&#160;&#160; &#160;&#160;&#160;&#160; url: replaceUrlPart(grid.getGridParam(&#39;url&#39;), elem.attr(&#39;id&#39;), elem.val()),<br />&#160;&#160; &#160;&#160;&#160;&#160; editurl: replaceUrlPart(grid.getGridParam(&#39;editurl&#39;), elem.attr(&#39;id&#39;), elem.val()),<br />&#160;&#160; &#160;&#160;&#160;&#160; page: 1<br />&#160;&#160; &#160;}).trigger(&#39;reloadGrid&#39;); // &#60;-- When relaoading, ajax calls to the OLD editurl...<br />&#160;&#160; &#160;alert(grid.getGridParam(&#39;editurl&#39;)) // &#60;-- ... but this shows the NEW one, so it&#39;s not my fault 😛<br />}</p>
<p>function replaceUrlPart(url, tag, newValue){<br />&#160;&#160; &#160;return url.replace(RegExp(&#39;(\\\\?&#124;&#38;)&#39; + tag + &#39;=[^&#38;]*&#39;), &#39;$1&#39; + tag + &#39;=&#39; + newValue);<br />}</p>
</div>
<p>I hope it&#39;s useful to you, and you can fix this.</p>
<p>By the way, excellent job with your plugin, I love it <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" />, thanks a lot.</p>
<p>Regards,</p>
<p>Yajo.</p>
]]></description>
        	        	<pubDate>Thu, 05 Nov 2009 05:05:05 +0200</pubDate>
        </item>
        <item>
        	<title>tony on editurl not changed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11476</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11476</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks - where you do (in which event or pice of code) the call.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit529' value='Select Code' data-codeid='sfcode529' /></p>
<div class='sfcode' id='sfcode529'>
<p>grid.setGridParam({editurl:&#8221;page.php?parameter=bye&#8221;});</p>
</div>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 04 Nov 2009 04:49:34 +0200</pubDate>
        </item>
        <item>
        	<title>Yajo on editurl not changed</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11447</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/editurl-not-changed#p11447</guid>
        	        	<description><![CDATA[<p>Steps to reproduce bug:</p>
<p>1. Create a grid with an editurl and editable rows.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5933' value='Select Code' data-codeid='sfcode5933' /></p>
<div class='sfcode' id='sfcode5933'>
<p>var grid = jQuery(&#39;#blabla&#39;).jqGrid({</p>
<p>&#160;&#160; ...,</p>
<p>&#160;&#160; editurl: "page.php?parameter=hello"</p>
<p>});</p>
</div>
<p>2. Change the editurl parameter.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2129' value='Select Code' data-codeid='sfcode2129' /></p>
<div class='sfcode' id='sfcode2129'>grid.setGridParam({editurl:"page.php?parameter=bye"});</div>
<p>3. Check it has been changed successfully.</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5397' value='Select Code' data-codeid='sfcode5397' /></p>
<div class='sfcode' id='sfcode5397'>grid.getGridParam(&#39;editurl&#39;); // returns "page.php?parameter=bye"</div>
</p>
<p>4. Edit one row and save it. You will see that the ajax call goes to "page.php?parameter=hello".</p>
<p>I think it&#39;s not an error in my code... can you please fix this? Thanks a lot, be happy <img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /></p>
]]></description>
        	        	<pubDate>Tue, 03 Nov 2009 05:38:37 +0200</pubDate>
        </item>
</channel>
</rss>