Documentation

jsonp

issues jsonP call

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

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...
})

- data object value returned by server
Details

http://en.wikipedia.org/wiki/JSONP

Back to top