File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes howto ensure event handler finish task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "howto ensure event handler finish task" Watch "howto ensure event handler finish task" New topic

howto ensure event handler finish task

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
i have a textfield ,which have onChange event handler,when i change some value in
this textfield, if i go select the option pull-down menu which have
another different onchange event handler, when i click on options
pull-down menu , it give me blank page,

how do i make sure when user change some value in textfield and
the onChange event handler will finish first then only allow proceed other event?

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
add code that has a busy flag and your other part has to wait to it is finished.

I agree. Here's the link:
subject: howto ensure event handler finish task
jQuery in Action, 3rd edition