<?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: possible to submit old input value after select field change</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/possible-to-submit-old-input-value-after-select-field-change</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/possible-to-submit-old-input-value-after-select-field-change/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rootsmith on possible to submit old input value after select field change</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/possible-to-submit-old-input-value-after-select-field-change#p29212</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/possible-to-submit-old-input-value-after-select-field-change#p29212</guid>
        	        	<description><![CDATA[<p>Note, that this is a repeat from an issue I opened on GitHub: <a href="https://github.com/tonytomov/jqGrid/issues/486" rel="nofollow" target="_blank">https://github.com/tonytomov/jqGrid/issues/486</a></p>
<p>But I shall repeat here as I am unaware of which list is more active. Sorry for cross posting.</p>
<p>In environments where the browser is overtaxed or a network operation may have serious lag, it is possible in the advanced search dialog for the user to submit an old input text element value after a select rule field change because the rendering of the new input text element has not completed yet.</p>
<p>For example, in the advanced search dialog, a user selects a different rule field and very quickly pastes a value into the input text box and hits &#39;Find&#39;. Imagine that the building of the new data row element requires a remote call such as in a custom buildSelect. As a result, jqGrid posts an empty string even though the user entered in a value because it hadn&#39;t finished rendering the new element.</p>
<p>The root cause is that the processing of the ruleFieldSelect onChange event took a while, leaving the input data field for the old filter field on the screen. The user actually entered the data into the old input text element and hit submit before the new input text element had a chance to render. The call to empty() the old input field does not occur until the end of the event handler.</p>
<p>Note that this behaviour is extremely hard to replicate because most modern equipment and networks allow the whole thing to happen faster than human actions. I have only seen it in a hideously overburdened enterprise environment.</p>
<p>I have a patch on my forked jqGrid. I am just raising this issue to spark discussion and checking if I am indeed on to something. If I am not proven to be crazy I will do a pull request at some point.</p>
<p>Cheers</p>
]]></description>
        	        	<pubDate>Tue, 23 Jul 2013 21:59:25 +0300</pubDate>
        </item>
</channel>
</rss>