jsonp

issues jsonP call

void jsonp(string url, [object params,function callback,object master] );

Deprecated

Will be deprecated in Webix 7.0

Parameters

urlstringserver-side feed
paramsobjecthash of parameters which will be included in jsonp url
callbackfunctioncallback method
masterobjectvalue of "this" in callback

Example

// minimal call
webix.jsonp("http://some.com/some.php", function(data){
   ... do something...
});
 
// call with extra parameters
webix.jsonp("http://some.com/some.php", {
    user:12,
    action:"fetch"
}, function(data){
   ... do something...
});

Details

The callback function takes one parameter:

  • data - (object) the value returned by a server.

The details on the JSONP technique can be found at http://en.wikipedia.org/wiki/JSONP.

Back to top