[jQuery] Re: strange behaviour: multiple selectors responding

2008-05-07 Thread bobh
karl, thanks for your help. you make it seem so easy... On May 6, 10:33 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi Bob, > > I'd probably just do this without the ajaxStart and ajaxStop methods. > Try this: > > $("#contests ul li span a").toggle( > function(){ > //store ref to

[jQuery] Re: strange behaviour: multiple selectors responding

2008-05-06 Thread Karl Swedberg
Hi Bob, I'd probably just do this without the ajaxStart and ajaxStop methods. Try this: $("#contests ul li span a").toggle( function(){ //store ref to toggling element for use in ajax callbacks... var lnk = $(this); var url_title = lnk.html(); lnk.html(

[jQuery] Re: strange behaviour: multiple selectors responding

2008-05-06 Thread bobh
I'm afraid the behaviour is still there using your code. I've updated my example page with it. On May 6, 12:25 am, Wizzud <[EMAIL PROTECTED]> wrote: > The problem is the context of 'this' within the ajaxStart() and > ajaxStop() functions. > > try this instead... > > $("#contests ul li span a").to

[jQuery] Re: strange behaviour: multiple selectors responding

2008-05-05 Thread Wizzud
The problem is the context of 'this' within the ajaxStart() and ajaxStop() functions. try this instead... $("#contests ul li span a").toggle( function(){ //store ref to toggling element for use in ajax callbacks... var lnk = $(this); var url_title = lnk.html();