Class: jsonpRequest

src/modules/Utils.jsonpRequest

new jsonpRequest(url) → {Promise.<(Object|String)>}

Make a jsonp request, remember only GET The function create a tag script and append a callback param in querystring. The promise will be reject after 3s if the url fail to respond
Parameters:
Name Type Description
url String the url with querystring but without &callback at the end or &function
Source:
Returns:
Type
Promise.<(Object|String)>
Example
request = new jsonpRequest("http://www.someapi.com/asd?somequery=1");
request.then(...)