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
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 n
$("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
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 jQu
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:
>
>
>
>
> one
>
>
>
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
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
Christian,
I guess I just don't understand the issue. When I need to use a button/link
for multiple function I do something like what I posted before and all is
fine. Can you explain or show in what context your code will be in?
[code]
$('#link').click(function(){
sayHi();
});
sayHi = function
On Jun 20, 2:09 pm, Christian <[EMAIL PROTECTED]> wrote:
> Thanks for the suggestion, but still no dice.
Well, I am working around this in a somewhat hackish way...
var sayhi = function(e) {
alert('hi');
e.halt = true;
$('#mybutton').click(saybye);
On Jun 20, 3:05 pm, "Jake McGraw" <[EMAIL PROTECTED]> wrote:
> Have you tried toggle?
[snip code]
> May not be exactly what you were looking for...
Yeah, not quite. Once the button is clicked, the handler should not
change again until it is expressly set to something else by another
event.
Th
Have you tried toggle?
$(function(){
$("#mybutton").toggle(function(){
alert("hello");
},function(){
alert("goodbye");
});
});
May not be exactly what you were looking for...
- jake
On 6/20/07, Christian <[EMAIL PROTECTED]> wrote:
On Jun 20, 1:57 pm, "Benjamin Sterling"
<[EMAIL PRO
On Jun 20, 1:57 pm, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> Christian,
> I am not a 100% on what Event Bubbling is, I searched it, but still no real
> idea.
Yeah, I think I misnamed this thread :-(
It really isn't bubbling as the two event handlers are bound to the
same event of the sam
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 assumi
Christian,
I am not a 100% on what Event Bubbling is, I searched it, but still no real
idea. But I am assuming you can do something like:
var sayhi = function(e) {
alert('hi');
e.stopPropagation(); // also tried $('mybutton').unbind()
$('#mybutton').unbind('cl
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
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 bin
17 matches
Mail list logo