0
I Use This!
Activity Not Available
Analyzed 10 months ago. based on code collected 10 months ago.

Project Summary

Prototype based Ajax.ScriptRequest to load JSON data from other domains.

Basic usagenew Ajax.ScriptRequest(url, options);

// Example
new Ajax.ScriptRequest("http://api.flickr.com/services/rest/", {
parameters: {
method:"flickr.tags.getHotList",
format: "json",
api_key: "xyz"
},
onResponse: myResponse,
callbackName: "jsoncallback"
});Extended usagenew Ajax.FlickrRequest(method, options);

new Ajax.FlickrRequest("flickr.tags.getHotList", {
onResponse: myResponse
});Demohttp://script-request.googlecode.com/svn/trunk/index.html

ExtensionsAjax.DeliciousRequest Ajax.FlickrRequest Ajax.YahooImageSearch Ajax.XmlJsonRequest ... Sample extension implementationAjax.FlickrRequest = Ajax.ScriptRequest.extend({
setOptions: function(options){
this.url = "http://api.flickr.com/services/rest/?method=" + this.url;
this.options = {
callbackName: "jsoncallback",
parameters: {
api_key: "xyz",
format: "json"
}
};
}
});

// call your new extension:

new Ajax.FlickrRequest("flickr.tags.getHotList", myCallback);Downloadhttp://script-request.googlecode.com/svn/trunk/scripts/ScriptRequest.js http://script-request.googlecode.com/svn/trunk/scripts/ScriptRequestExtensions.js AuthorMartin Kleppe

Send Mail

Tags

json javascript prototype ajax

In a Nutshell, script-request...

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    compare projects before you chose one to use
  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    you can subscribe to e-mail newsletters to receive update from the Open Hub blog

30 Day Summary

Apr 9 2016 — May 9 2016

12 Month Summary

May 9 2015 — May 9 2016

Ratings

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!