[jQuery] wrapping AJAX callback results
I am trying to work with results from a .get() call, but once the "xml" parameter is wrapped with "$()", it seems to refer to the current document instead of the document retrieved by .get().
alert(ajaxUrl);
$.get(ajaxUrl,function(xml){
alert(xml);
alert($(xml).html());
});
the first alert displays the source from the retrieved document while the second one displays the source from the current document.
Any suggestions would be immensely helpful. I am using the Stable May 12th build.
-Chris Frohoff
<hr size=1>Do you Yahoo!?
Next-gen email? Have it all with the <a href="http://us.rd.yahoo.com/evt=42241/*http://advision.webevents.yahoo.com/handraisers"> all-new Yahoo! Mail Beta.</a>_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/