Class o2.Jsonp


static class o2.Jsonp

An object to make JSONP calls.

Defined in jsonp.core

Function Summary
static get (String url, Object params, Function callback)

Creates a JSONP request.

Usage example:

 o2.Jsonp.get('http://example.com/api.php', {param: 'value'},
      function(data) {

      }
 );
 

Function Details

function get

static get(String url, Object params, Function callback)

Creates a JSONP request.

Usage example:

 o2.Jsonp.get('http://example.com/api.php', {param: 'value'},
      function(data) {

      }
 );
 
Parameters:
url - the URL of the JSONP service.
params - parameters in the form of {name1:value1,...}
callback - callback to execute after JSONP arrives.