I'm calling a webservice using jquer's ajax method and it seems to work since the 'success' function is executed. I need to output the raw results returned, but when I use alerts, the messagebox shows the output as: event='' XMLHttpRequest=success ajaxOptions=undefined
What am I doing wrong and how can I output the raw results?
$.ajax({
url: "http://mysite/service/lists.asmx",
type: "POST",
dataType: "xml",
data: soapEnv,
contentType: "text/xml; charset=utf-8",
success: function(event, XMLHttpRequest, ajaxOptions){
alert("event= "+event);alert("XMLHttpRequest= "+XMLHttpRequest);
alert("ajaxOptions= "+ajaxOptions);},
error: function(xhr) {
alert('Error! Status = ' + xhr.status);}
});