How to use xml response as XMLObject outside of ajax callback function
- by Anthony
Hopefully I've just made a dumb oversight, but I can't figure out why the following doesn't work:
$(function() {
var xml;
$.get(
"somexml.xml",
function(data){
xml = data;
},
"xml");
alert(xml);
});
If I put the alert inside of the callback function, I get back object XMLdocument but if I place…