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

function (args, requiredArgs) (view source)
parametertypedescription
args  
requiredArgs  

Jump to PropertiesFunctionsBack to top

Functionbind(method: String, parameters: Array, deferredRequestHandler, 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.
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
parse the results coming back from an rpc request. this base implementation, just returns the full object subclasses should parse and only return the actual results
FunctionprocessSmd(object)
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