[jQuery] Re: Event Binding Problem

2008-04-10 Thread mike mike
Got it licked, many many thanks for your help Ariel and Wizzud ;) On 10/04/2008, Ariel Flesler <[EMAIL PROTECTED]> wrote: > > > Can't help you out with this, I've never read any.. > > Cheers > > > On 10 abr, 14:58, "mike mike" <[EMAIL PROTECTED]> wrote: > > Hi Ariel, > > > > Many thanks again for

[jQuery] Re: Event Binding Problem

2008-04-10 Thread Ariel Flesler
Can't help you out with this, I've never read any.. Cheers -- Ariel Flesler http://flesler.blogspot.com On 10 abr, 14:58, "mike mike" <[EMAIL PROTECTED]> wrote: > Hi Ariel, > > Many thanks again for replying! > > I think I am confussing the two approaches here ;-)  I think I need to go > down t

[jQuery] Re: Event Binding Problem

2008-04-10 Thread mike mike
Hi Ariel, Many thanks again for replying! I think I am confussing the two approaches here ;-) I think I need to go down the delegation method as I may be adding a load of divs (the final app will be used to track Amateur Radio nets, each one will need to have comment data, signal data etc which

[jQuery] Re: Event Binding Problem

2008-04-10 Thread Wizzud
Turn it round slightly. Instead of ... $("#column").append(html).find('.portHeader').bind('click',setQRX); try... $(html).appendTo('#column').find('.portHeader').bind('click',setQRX); This way, when you get to the find(), the context is the newly appended html, whereas previously is was #colum

[jQuery] Re: Event Binding Problem

2008-04-10 Thread Ariel Flesler
Hi Mike >>I *think* the answer is in the FAQ snippet That snippet is the base for Event delegation. That would the second approach, I think you've been following the first (re-binding). So, you take one option, or the other, not both. If you stick to re- binding, the technique of a class you men

[jQuery] Re: Event Binding Problem

2008-04-10 Thread mike mike
Many thanks for the help, *Ariel*, Yes I have read the FAQ and now followed all the links. It's starting to make some sense, slowly, but I can't relate the examples to my code (I really am a newb LOL). I'm on a learning curve here ;-)) *Wizzud*, Many thanks for the great explanation and yep, I

[jQuery] Re: Event Binding Problem

2008-04-09 Thread Ariel Flesler
Have you checked this ? http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F -- Ariel Flesler http://flesler.blogspot.com On 9 abr, 17:34, GM1WKR <[EMAIL PROTECTED]> wrote: > Hi There, > > I am a total JS newb and hobbyist only so I hope I can

[jQuery] Re: Event Binding Problem

2008-04-09 Thread Wizzud
This line... $("#column").append(html).find('.portHeader').bind('click',setQRX); might be causing you a problem. Breakdown... $("#column") //select #column .append(html) //append some HTML to #column .find('.portHeader') //find anything in #column with class portHeader .bind('click',setQ