$(form).*bind*(submit, function(event){
event.stopPropagation();
});
better :-)
Joe schrieb:
// To prevent event bubbling, return false (right?)
return false;
shouldn't that be event.preventDefault(); like
$(form).*bind*(submit, function(event){
event.preventDefault();
});
?
micha
Michael,
Thanks for the reply. Both solutions work, but return false works as
well. It turns out that the real issue was that the cookie on IE6 in
a localhost environment cannot be set, well, at least I have been
unsuccessful. I am running Multiple IEs on one box and IE Tester on
another and
Joe schrieb:
I am running Multiple IEs on one box and IE Tester on
another and neither will allow me to set the cookie in IE6. IE7 is
fine.
afaik:
that's not a bug, that's a feature.
micha
That seems to work - sort of...
$(#main).bind(mouseleave, function(event) {
alert(event.target.id);
});
But I'm still having problems...when I use event.target.id the results
are inconsistent surprisingly in Firefox and not IE.
Also, it is worth noting I needed to use the latest jQuery
skube, try *mouseleave* instead, that one take bubbling into account.
On 3/3/08, skube [EMAIL PROTECTED] wrote:
I am a little confused about event bubbling. Say for example I have
the following bit of HTML:
code
div id=main
div id=one
one
/div
I don't know ur use-case, but why are u using body.click...
Instead it could be very easy, intuitive and smaller to use
$(#test h2).click(function() {
alert(test);
});
-GTG
On 8/17/07, Jones [EMAIL PROTECTED] wrote:
Hi,
I've got a problem with event bubbling.
That works fine:
i think u r doing it right... just that u will have to remove the attribute
onclick=return false; from the button tag that is probably preventing ur
event to bubble.
I dont know if i am even close to answering ur question. But if i am not,
can u provide more explanation on what u r trying to do
Tried, return false in sayhi?
- jake
On 6/20/07, Christian [EMAIL PROTECTED] wrote:
Hi,
First off, I really like jQuery - coming from MochiKit, it is nice to
have such a well put together library.
So here is my question: does anyone know how to stop event bubbling in
IE6? I want to bind a
On Jun 20, 1:44 pm, Jake McGraw [EMAIL PROTECTED] wrote:
Tried, return false in sayhi?
Yep, no dice. Thanks for the suggestion though.
Christian
I just found this: http://www.quirksmode.org/js/events_order.html
Down the page it has this:
window.event.cancelBubble = true
On 6/20/07, Benjamin Sterling [EMAIL PROTECTED] wrote:
Christian,
I am not a 100% on what Event Bubbling is, I searched it, but still no
real idea. But I am
11 matches
Mail list logo