AJAX XML-RPC Client

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
}
}

Download


2 Comments on “AJAX XML-RPC Client”

  1. [...] 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"]
  2. [...] 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"]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 341 other followers