Functiondojox.wire.ml.RestHandler.bind

dojo.require("dojox.wire.ml.Service");
defined in dojox/wire/ml/Service.js

A service is called with a URL generated by _getUrl() and an HTTP method specified with 'method'. For "POST" and "PUT", a content is generated by getContent(). When data is loaded, getResult() is used to pass the result to Deferred.callback().

Usage

function (method, parameters, deferred, url) (view source)
parametertypedescription
method method name
parameters array of parameters
deferred  
url URL for the method