Javascript is single threaded - so, only one function can be executing at a time. And it applies to all js code, not just the event handlers.
Regarding the ordering, I believe onBlur() on widget1 will be called first followed by onFocus on the second widget. Also, this should be consistent across browsers. This is my belief - you should try it out and confirm. --Sri On 1 May 2010 02:03, Rob Tanner <[email protected]> wrote: > Hi, > > What I'm trying to find out is whether one handler completes before > the next can be processed. For example, one widget with on onBlur > event handler and a second widget with an onFocus or onClick event > handler. The first widget has focus and then I click on the second > widget. That should fire the onBlur event handler on the first object > and also fire the onClick or onFocus handler on the second object. > Which handler runs first and must it complete before processing begins > on the second event handler. And then the $64,000, does the answer > depend on which browser the app is running on? > > Thanks, > Rob > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
