Skip to content

markknol/hx-jsonp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

JSONP for Haxe

JSONP (or JSON with Padding) is a technique used by web developers to overcome the cross-domain restrictions imposed by browsers to allow data to be retrieved from systems other than the one the page was served by.

Usage

var url = js.Browser.location.protocol + '//mywebsite.com/api/jsonp/search/';
var http = new haxe.Jsonp(url);
http.onData = function(data) {
  trace(data);
}
http.request("search_callback");

Notes

This library only works for the Haxe JavaScript target.

Releases

No releases published

Packages

No packages published

Languages