[jQuery] Re: Question about event.StopPropagation()

2007-08-18 Thread Richard D. Worth
Here's a tip for using firebug to debug your issue: try console.log( event.target) instead of alert(). When debugging events (especially focus), an alert pop-up can interfere a lot. Besides, console.log will give you all sorts of details that alert() won't give you. Try console.log(event) even, the

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mitch
Thank you Mike. I discovered that the best first "documentation" to read can be found by clicking on every screen shot on the main page, and printing each out and then trying every feature they so describe with terrific brevity (like one or two sentences :) I'm beginning to see how to use Firebug

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mike Alsup
Look at all the "Learn More" links on the main page. There is some good stuff. Maybe not exactly what you're looking for, but there is some useful info. > Have you looked at the "documentation"? They have a one page FAQ, > console reference, keyboard reference and jQuery Lite. I dont see > an

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mitch
I found something http://www.evotech.net/blog/2007/06/introduction-to-firebug/ On Aug 17, 7:22 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > > I wish Firebug had some documentation. > > It does. http://getfirebug.com/

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mitch
Have you looked at the "documentation"? They have a one page FAQ, console reference, keyboard reference and jQuery Lite. I dont see anything like "how to use Firebug to debug". http://getfirebug.com/docs.html Maybe there is another link to a tutorial? On Aug 17, 7:22 am, "Mike Alsup" <[EMAIL P

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mike Alsup
> I wish Firebug had some documentation. It does. http://getfirebug.com/

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mitch
Hi Michael I thought that since 'match' is a ID () that means it is NOT a string, so I do I have the whole wrong idea about IDs? They are just plain old strings? Using the debugger is just what I need. I added the line to my code $("div").click(function(event) { debugger; if (event.targ

[jQuery] Re: Question about event.StopPropagation()

2007-08-16 Thread Michael Geary
> > if (event.target.id != 'match') > Thank you for the syntax correctoin. But how does jQuery know > that 'match' is an ID and not an ordinary variable. It's neither. 'match' is a string. event is a variable. event.target is a property of the event variable, and event.target.id is a prop

[jQuery] Re: Question about event.StopPropagation()

2007-08-16 Thread Mitch
Thank you for the syntax correctoin. But how does jQuery know that 'match' is an ID and not an ordinary variable. I have the handler set up but it seems to match any div that is clicked including the #match ID which I want it to ignore. Grrr. So I am wondering is there some kind of process I cou

[jQuery] Re: Question about event.StopPropagation()

2007-08-16 Thread Michael Geary
> I am trying to get event bubbling to work right and have this snippet > > $("div").click(function(event) { > if (event.target == this) { > $("#text800birds").css( { background: "#EE", color: "#FF"} ); > } > }); > > I would like to c

[jQuery] Re: Question about event.StopPropagation()

2007-08-16 Thread Karl Rudd
I think you mean: if (event.target.id != 'match') Karl Rudd On 8/17/07, Josh Nathanson <[EMAIL PROTECTED]> wrote: > > I think this will work: > > if (event.target.id <> 'match') > > -- Josh > > - Original Message - > From: "Mitch" <[EMAIL PROTECTED]> > To: "jQuery (English)" > Sent

[jQuery] Re: Question about event.StopPropagation()

2007-08-16 Thread Josh Nathanson
I think this will work: if (event.target.id <> 'match') -- Josh - Original Message - From: "Mitch" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Thursday, August 16, 2007 6:32 PM Subject: [jQuery] Question about event.StopPropagation() I am trying to get event bubbling to wor