Function
$().SPServices.SPDebugXMLHttpResult
Functionality
This function displays the XMLHttpResult from an Ajax call formatted for easy debugging. You can call it manually as part of your completefunc. The function returns an HTML string which contains a parsed version of the XMLHttpResult object.
Prerequisites
None
Syntax
var out = $().SPServices.SPDebugXMLHttpResult({
node: null // An XMLHttpResult object from an ajax call
});
Example
$().SPServices({
operation: "GetList",
listName: "States",
completefunc: function (xData, Status) {
var out = $().SPServices.SPDebugXMLHttpResult({
node: xData.responseXML
});
$("#WSOutput").html("").append("<b>This is the output from the GetList operation:</b>" + out);
}
});