views:

179

answers:

1

I've just been working on a jQuery extension described in this question, and have now run into another problem: I need to make sure that my particular event handler runs before any other event handlers which may already be on an element.

When adding events, it appears as though they get pushed to the back of a queue, whereas I really need mine to be at the front, such that it can prevent other ones from running. How can you do this?

+1  A: 

Maybe you'll find something useful here (jquery google groups) but from what I've read there is no "easy-to-use" function to work with the events stack

EDIT: there was also a link to this plugin there. It's called event stack binder.

andi