NAME JSONScriptRequest - Call the JSONP API like XMLHttpRequest SYNOPSIS var req = new JSONScriptRequest(); req.open('GET', 'http://www.example.com/jsonp'); req.onreadystatechange = function() { if (req.readyState == 4) { alert(req.responseJSON); } }; req.send(null); DESCRIPTION JSONScriptRequest calls JSON API by using the SCRIPT element. It enables the cross-site request. Its usage looks like XMLHttpRequest. See the document of XMLHttpRequest for details. Class Properties responseJSON var json = req.responseJSON; This attributes represents the response as a JSON object. NULL if the request is unsuccessful or has not yet been sent. Constructor JSONScriptRequest({...}) The following values can be specified for the argument. callback_param The name of the callback parameter key. Default is 'callback'. TODO Implement the features that is not implemented yet. SEE ALSO The XMLHttpRequest Object AUTHOR Hironori Yoshida COPYRIGHT Copyright (c) 2006, Hironori Yoshida . All rights reserved. This module is free software; you can redistribute it and/or modify it under the terms of the Artistic license. Or whatever license I choose, which I will do instead of keeping this documentation like it is.