By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

Prevent a javascript function from executing twice

P: n/a
hi,

I have a select dropdown and 5 text fields. based on the option
selected (which are the units - cm/mm/inches/ft/yard etc), i change
the values in the text fields using javascript to the corresponding
units.

my problem is that when the options are selected very quickly(for eg
using the keyboard's up/down keys) then quickly, the text field values
lose their connection with the select box and the values become
illegal.
I suspect that the javascript function is being called even before the
earlier execution has not terminated.
I tried using a global variable and using it as a lock, but still no
success.

What possibly am i doing wrong here?

Thanks for any help
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Vijay wrote:
[...]

What possibly am i doing wrong here?


Without a small code sample showing the behaviour, we're just
guessing. Can you provide a hint?

--
Rob
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.