[jQuery] Re: event handlers that run after the browser's default action

2009-08-21 Thread ak732
Not sure that there's a more deterministic approach - if so, it's beyond my limited Javascript knowledge. Specifically what are you trying to accomplish by wiring an event handler to fire after the default action? On Aug 20, 10:39 pm, Tom Worster f...@thefsb.org wrote: thanks. i thought of

[jQuery] Re: event handlers that run after the browser's default action

2009-08-21 Thread Nick Fitzsimons
2009/8/20 Tom Worster f...@thefsb.org: is there a way to set up a page so that a event handler function is bound to a DOM object and event but it runs _after_ the browser's default action is complete? No; the DOM Events specifications explicitly state that the event handling process occurs

[jQuery] Re: event handlers that run after the browser's default action

2009-08-21 Thread Tom Worster
i was interested in using the value of a text input immediately after the browser has finished handling a keyboard event. On 8/21/09 10:14 AM, ak732 ask...@gmail.com wrote: Not sure that there's a more deterministic approach - if so, it's beyond my limited Javascript knowledge.

[jQuery] Re: event handlers that run after the browser's default action

2009-08-20 Thread ak732
This is crude, but might work for you... $(#someId).click()(function() { set_timeout(function() { // stuff to be done 2ms from now }, 2); }); You might have to play with the set_timeout delay a bit, 2ms might be too short. On Aug 20, 3:47 pm, Tom Worster f...@thefsb.org wrote: is

[jQuery] Re: event handlers that run after the browser's default action

2009-08-20 Thread Tom Worster
thanks. i thought of using a timeout and it could probably be made to work fairly well. but i'd be left with the worry that some user's crummy old browser and computer that's too busy doing other things might need a longer delay than i set. we can insert event handlers at the beginning of the