AJAX XML-RPC Client
Posted: May 9, 2010 | Author: Danilo | Filed under: MainMenu |2 Comments »JavaScript XML-RPC client that communicates with XMLHttpRequest request. Both the arguments passed and the return variable are processed as JavaScript objects.
Download
How to use it:
var request = new XmlRpcRequest(URL, XML-RPC method);
request.addParam(“username”);
request.addParam(“pass”);
request.addListener(listenerObj); //listener on the connection
request.send();
The Listener should implement two methods:
/* Callback function, passed return variable as a JS Obj. */
Listener.prototype.successCallback = function (xmlRpcResponseObj, jsParsedObj) {
}/* Callback error function, passed error as string. */
Listener.prototype.errorCallback = function (faultCode, faultString) {if(“undefined” == typeof faultCode) {
//Server did not return any results
}
}
[...] Go here to read the rest: AJAX XML-RPC Client « Danilo Ercoli's Blog [...]
Go here to read the rest: AJAX XML-RPC Client Danilo Ercoli's Blog [...]..." permalink="http://daniloercoli.wordpress.com/2010/05/09/ajax-xml-rpc-client/#comment-12"][...] AJAX XML-RPC Client May 20101 comment 3 [...]
AJAX XML-RPC Client May 20101 comment 3 [...]..." permalink="http://daniloercoli.wordpress.com/2010/05/09/ajax-xml-rpc-client/#comment-81"]