﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebInput - WebInput OnAfterValueChanged event  client side firing twice</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-OnAfterValueChanged-event-client-side-firing-twice/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebInput OnAfterValueChanged event  client side firing twice</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-OnAfterValueChanged-event-client-side-firing-twice/</link><pubDate>Mon, 26 Apr 2010 00:33:36 GMT</pubDate><dc:creator>julia</dc:creator><category>WebInput</category><description>&lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you for sharing the workaround with us. I have forwarded your valuable feedback to our development team. Please let us know if you need another help.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>WebInput OnAfterValueChanged event  client side firing twice</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-OnAfterValueChanged-event-client-side-firing-twice/</link><pubDate>Fri, 23 Apr 2010 11:39:48 GMT</pubDate><dc:creator>lud310</dc:creator><category>WebInput</category><description>&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;Hi Julia, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;Thanks for the workaround. Unfortunately it does not work for me. Event is still firing twice. I will not spend more time on it. I will go with the simpler (cheap)&amp;nbsp;workaround . But I still think this control &lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;should be fixed permanently without the need for workaround. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;Thanks&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; WebInput1_OnAfterValueChanged(controlId, newValue, newText) {&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; str = newValue;&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; pos = str.indexOf(&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"/"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;)&lt;/span&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;&lt;span style="font-size: 13px; color: #0000ff"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; (pos &amp;gt;= 0) {alert(&lt;/span&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;&lt;span style="font-size: 13px; color: #a31515"&gt;"test"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;); &lt;p&gt;} &lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/span&gt;</description></item><item><title>WebInput OnAfterValueChanged event  client side firing twice</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-OnAfterValueChanged-event-client-side-firing-twice/</link><pubDate>Thu, 22 Apr 2010 06:21:14 GMT</pubDate><dc:creator>julia</dc:creator><category>WebInput</category><description>&lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I'm sorry to keep you waiting. I have created a workaround for you based on the sample that you attached before.&lt;/p&gt;
&lt;p&gt;As the mask of WebInput has &lt;em&gt;edit text&lt;/em&gt; and &lt;em&gt;display text&lt;/em&gt;, you will have two different values for every new input value. Apparently, this two value that might be triggered the OnAfterValueChanged event twice. So, to avoid the event being fired twice, we need to compare if the new value is really come from user and not by mask. It is a little hard if the comparison value has different format of slash and dash. So by using regex, we could manipulate to equate the edit value as display value, this way the event wouldn't do more firing.&lt;/p&gt;
&lt;p&gt;For more detail, here is the attachment of my workaround.&lt;/p&gt;
&lt;p&gt;Please let me know if this workaround could help or not.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>WebInput OnAfterValueChanged event  client side firing twice</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-OnAfterValueChanged-event-client-side-firing-twice/</link><pubDate>Tue, 20 Apr 2010 10:50:30 GMT</pubDate><dc:creator>lud310</dc:creator><category>WebInput</category><description>&lt;p&gt;Project is going to QA this Friday (Apr 23rd). So i hope you understand the rush.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item><item><title>WebInput OnAfterValueChanged event  client side firing twice</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-OnAfterValueChanged-event-client-side-firing-twice/</link><pubDate>Tue, 20 Apr 2010 09:01:35 GMT</pubDate><dc:creator>julia</dc:creator><category>WebInput</category><description>&lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I'm apologize for the delay answer. Currently our development team is investigating this project. I haven't receive any confirmation on when the hotfix will be ready. If you don't mind, may I know the deadline of your project?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>WebInput OnAfterValueChanged event  client side firing twice</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-OnAfterValueChanged-event-client-side-firing-twice/</link><pubDate>Mon, 19 Apr 2010 10:42:38 GMT</pubDate><dc:creator>lud310</dc:creator><category>WebInput</category><description>&lt;p&gt;Thank you Julia. What is time frame to resolve this issue? I have  number of input controls which require that event to work properly. My project release deadline is &lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;approaching &lt;/span&gt;fast. I would appreciate fix asap.&lt;/p&gt;
&lt;p&gt;Thank you in advance&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;</description></item><item><title>WebInput OnAfterValueChanged event  client side firing twice</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-OnAfterValueChanged-event-client-side-firing-twice/</link><pubDate>Thu, 15 Apr 2010 07:54:22 GMT</pubDate><dc:creator>julia</dc:creator><category>WebInput</category><description>&lt;p&gt;Hi Mark,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thank you for the sample. I have tested your sample and enable to reproduce the issue. I have forwarded this issue to our WebInput Development Team. I will inform you for any news in this thread.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>WebInput OnAfterValueChanged event  client side firing twice</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-OnAfterValueChanged-event-client-side-firing-twice/</link><pubDate>Wed, 14 Apr 2010 11:19:21 GMT</pubDate><dc:creator>lud310</dc:creator><category>WebInput</category><description>&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;Hello,
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;I'm using client side &amp;nbsp;OnAfterValueChanged event&amp;nbsp;and I have noticed that this event is firing twice. Just wander if this is a bug or I’m doing something wrong. I'm providing sample code which demonstrate that issue. I would appreciate solution or work around if possible.
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;Thank you
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>