Good afternoon people.
I have a slight issue with namespacing click events.
Currently I have a function that is in use on every page of a site I have been working on that uses live() to bind click hanlders to some <a> tags (which works perfectly).
I now have one page that needs to add some extra functionality to those <a> tags on this page -only-, so I decided to namespace the click. Namespacing it works fine with one caveat - it executes the namespaced handler before the original handler which creates havok with the original function. The havok is created because the namespaced handler removes an element that the original live() handler relies on for certain things.
What I wondered is if anyone knows a way to have the original hanlder executed first before the namespaced one and my problem will go away.
If this is not possible perhaps someone knows a way I can extend the original live() handler (on this one page only) to do some extra stuff after it's normal funcitonality.
Thanks in advance
Alex
[edit]
From the jquery docs..
When an event reaches an element, all handlers bound to that event type
for the element are fired. If there are multiple handlers registered,
they will always execute in the order in which they were bound. After
all handlers have executed, the event continues along the normal event
propagation path.
Does this mean they go from last to first or first to last?