[jQuery] Assigning $() function directly to a variable

[jQuery] Assigning $() function directly to a variable

You were on the right track with the call back function.
var myReturnedStuff;
$(myvar).load("/test_ajax", function (stuff){
myReturnedStuff = stuff;
});
alert(myReturnedStuff);
Note - not tested.
--
Shawn Tumey
Cofounder
MT Web Productions LLC
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/














    • Topic Participants

    • shawn