Login Register Help
API Documentation
Choose a stylesheet:

Constructordojo.rpc.JsonpService

dojo.require("dojo.rpc.JsonpService");
defined in dojo/rpc/JsonpService.js
Generic JSONP service. Minimally extends RpcService to allow easy definition of nearly any JSONP style service. Example SMD files exist in dojox.data

Usage

var foo=new dojo.rpc.JsonpService(args, requiredArgs);
parametertypedescription
args  
requiredArgs  

Jump to PropertiesFunctionsBack to top

Functionbind(method: String, parameters: Array, deferredRequestHandler: deferred, url)
JSONP bind method. Takes remote method, parameters, deferred, and a url, calls createRequest to make a JSON-RPC envelope and passes that off with bind.
Functionconstructor(args, requiredArgs)
Take a string as a url to retrieve an smd or an object that is an smd or partial smd to use as a definition for the service
FunctioncreateRequest(parameters)
create a JSONP req params: array The array of parameters for this request;
FunctionerrorCallback(deferredRequestHandler: dojo.Deferred)
create callback that calls the Deferres errback method
FunctiongenerateMethod(method: String, parameters: Array, url: String)
generate the local bind methods for the remote object
FunctionprocessSmd(object: smd)
callback method for reciept of a smd object. Parse the smd and generate functions based on the description
FunctionresultCallback(deferredRequestHandler: dojo.Deferred)
create callback that calls the Deferred's callback method

Jump to FunctionsPropertiesBack to top