<?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: scope conflict - formedit / global var rp_ge</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge</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/scope-conflict-formedit-global-var-rp_ge/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>OlegK on scope conflict - formedit / global var rp_ge</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21768</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21768</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I recommend you to try another setting of Add/Edit forms: <strong>recreateForm:true</strong> (see <a href="/blog/?page_id=393/feature-request/change-default-settings-for-recreatefilter-and-recreateform-to-true/" target="_blank">my feature request</a>). Probably this simple setting will solve your problem.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Thu, 20 Jan 2011 20:00:36 +0200</pubDate>
        </item>
        <item>
        	<title>ludoo on scope conflict - formedit / global var rp_ge</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21763</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21763</guid>
        	        	<description><![CDATA[<p>Thanks for fast answer,</p>
</p>
<p>Oh yes, in compiled source, it is enclosed in correct scope (i looked in src code).</p>
<p>global is probably not the good term, but there is really a conflict with tihs variable.</p>
</p>
<p>This is my case :</p>
<p>the user edit a row in a grid A.</p>
<p>The edit form has a link to open another dialog box with a grid B.</p>
<p>grid B has edit capabilities too.</p>
<p>just open this last edit form.</p>
<p>Close edit form, close grid B box,&#160;</p>
<p>then save grid A will fires beforeSubmit of grid B....</p>
</p>
<p>I think (but haven&#39;t test it) 2 grids with edit capabilities on the same page will cause the same bug.</p>
</p>
<p>Why my suggested solution seems to fix the problem ?</p>
<p>I spend a few times on debugging and going deep inside code but don&#39;t find exactly why there is a override.</p>
</p>
<p>Hope this will be useful enough for you to go deeper!</p>
</p>
<p>Best regards</p>
<p>LudoO</p>
]]></description>
        	        	<pubDate>Thu, 20 Jan 2011 18:09:27 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on scope conflict - formedit / global var rp_ge</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21761</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21761</guid>
        	        	<description><![CDATA[<p>Hello ludoo,</p>
<p>I disagree with you. The variable <strong>rp_ge</strong> defined in the line 10 is <strong>not global</strong>. It is define inside of the body of the function defined in the line 1. I recommend you to use <a href="http://www.jslint.com/" target="_blank">http://www.jslint.com/</a> to verify JavaScript code. It shows which variables are global. The variable <strong>rp_ge</strong> defined in the line 10 is do <strong>not global</strong>.</p>
<p>Best regards<br />Oleg</p>
]]></description>
        	        	<pubDate>Thu, 20 Jan 2011 13:25:00 +0200</pubDate>
        </item>
        <item>
        	<title>ludoo on scope conflict - formedit / global var rp_ge</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21759</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21759</guid>
        	        	<description><![CDATA[<p>As a workaround, it seems that removing global and set local var rp_ge works !</p>
<p>in grid.formedit.js</p>
<p>line 10</p>
<p>//var rp_ge = null;</p>
</p>
<p>line 342 in editGridRow :</p>
<p>var rp_ge = p; //rp_ge = p;</p>
<p>line 1475 in delGridRow &#160;:</p>
<p>var rp_ge = p; //rp_ge = p;</p>
]]></description>
        	        	<pubDate>Thu, 20 Jan 2011 11:01:04 +0200</pubDate>
        </item>
        <item>
        	<title>ludoo on scope conflict - formedit / global var rp_ge</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21757</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/scope-conflict-formedit-global-var-rp_ge#p21757</guid>
        	        	<description><![CDATA[<p>Hi , first great work ! Wonderful grid !</p>
</p>
<p>As mentionned in 3.8.2 changelog, "</p>
<ul>
<li>jqGrid now should not have any dependency on other JS libs &#8211; we have only one name-space</li>
</ul>
<p>But, in formedit (line 10) , variable rp_ge is global.</p>
<p>So when you use multiple grids, properties of rp_ge are mixed.</p>
<p>One miainbad effect is that events of last used grid fires on the other one.</p>
<p>Could you fix this by completely isolate this variable ?</p>
</p>
<p>Thanks</p>
</p>
<p>LudoO</p>
]]></description>
        	        	<pubDate>Thu, 20 Jan 2011 10:48:31 +0200</pubDate>
        </item>
</channel>
</rss>