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);
	}
});
Last edited Oct 26 at 4:15 AM by sympmarc, version 11
Comments
No comments yet.

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