Is it possible to interact with an XML file after making a $.ajax()
call?
IE:
.$ajax(
url: "someUrl",
type: "GET",
dataType:"xml",
success: function(xml){ //some function },
error : function(){ //some function}
});
$("#somebutton").click(function(xml){ //function that interacts with XML });
I haven't been able to interact with any XML file's unless all the functions are inside the success
parameter. Any tips, or do I just need to put all my functions into the success
function? Is there a better way to do what I'm describing than using $.ajax()