Thanks, I think I figured it out. He included "return false" in his
function, which stopped the bubble to the document object.
For future reference did you mean this question belongs in the
"general discussion" list, rather than development?
On Aug 29, 10:52 pm, oliver <[EMAIL PROTECTED]> wrote:
> it is possible that the other developer's code explicitly stops the
> propagation (bubbling) of the event. if not, there should be no reason
> that jQuery's event binding should prevent your handler. have you
> looked at that code directly?
>
> messages like this are usually better addressed (and answered) when
> sent to the jQuery English group.
>
> oliver
>
> On Aug 29, 3:43 pm, Dave Artz <[EMAIL PROTECTED]> wrote:
>
> > Hello, I looked in the documentation but couldn't find an answer, so
> > figured I'd post.
>
> > Consider the following scenario.
>
> > function some_function() { ... }
>
> > function attach_event(object, event, method)
> > {
> > if (object.addEventListener) object.addEventListener(event, method,
> > false);
> > else if (object.attachEvent) object.attachEvent('on' + event,
> > method);
>
> > }
>
> > attach_event(document, 'click', some_function);
>
> > I'm basically attaching a function to the document object that fires
> > whenever a click event bubbles up, and calls some_function(). I want
> > it to execute whenever someone clicks something on the page. If I
> > attach other events to object click events on the page, this still
> > works.
>
> > Another developer implemented JQuery, and bound some functions to an
> > anchor link. For some reason, my some_function() no longer fires.
> > The only solution I found was to directly bind some_function() using
> > JQuery instead of my generic document catch-all.
>
> > I don't know enough about JQuery to understand why this is happening
> > -- do you? Is there any way to get JQuery to allow my document object
> > to still receive the click event?
>
> > Thanks,
> > Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" 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/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---