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: xData.responseXML
});

node
An XMLHttpResult object returned 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);
	}
});
Last edited Dec 8 2009 at 6:47 PM by sympmarc, version 12
Comments
No comments yet.

Updating...
© 2006-2010 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2010.1.12.16187