[jQuery] Re: Variable scope trouble

2009-07-19 Thread rhodopsin
Thank you Mike! It works perfect now.

[jQuery] Re: Variable scope trouble

2009-07-18 Thread Michael Geary
The problem is the use of 'this' in the inner function. In that code it no longer means what you want it to mean. Try this (pun intended) instead: $('a[href^=logmar]').queue(function(){ var $this = $(this); var args = $this.attr("href").split('?')[1]; if(args.charAt(0) ==

[jQuery] Re: Variable scope trouble

2009-07-18 Thread rhodopsin
After getting a good nights sleep, and doing more research, it seems the problem is not scope-related, but ajax-related. The advice I have read suggests setting return values from within the ajax callback function, because of the asynchronous completion of the ajax function. So, I have attempted t