How to initialize the Dojo Yahoo RPC Service:

// You need the package of course
dojo.require("dojo.rpc.YahooService");

// Create a callback function to handle the results generated by a method
// A second optional parameter to your call back will allow the callback to use
// the submission Id of the json-rpc request

function contentCallBack(result){
	dojo.byId("content").innerHTML = dojo.json.serialize(result);
}

// Create a new object
var testClass = new dojo.rpc.YahooService();
		

Push these buttons to execute code in the button.

Results will be returned below under "Returned Content"






Returned Content:

None.

Debug Log: