I'm using jQuery.ajax() to send XML to my sever to be saved. I'm not sure how to deal with response text in this scenario. I want to send the XML file to page.php, then have it echo back with success or failure of saving the file. I the need to get that response text and check it in my JS.
as you can see I don't know where to go in my success function to get the page.php responseText.Code:$.ajax({ url: "page.php" , type: "POST" , contentType: "text/XML" , processData: false , data: inputXML , success: function(event, request, options) { //read response text and send it to function saveComp() }) , failure: ajaxError });


Reply With Quote

Bookmarks