the compact javascript framework
in partnership with mediatemple
Contains Json.Remote.
MIT-style license.
Json. Remote.js | Contains Json.Remote. |
Json. Remote | Wrapped XHR with automated sending and receiving of Javascript Objects in Json Format. |
Wrapped XHR with automated sending and receiving of Javascript Objects in Json Format. Inherits methods, properties, options and events from XHR.
url | the url you want to send your object to. |
options | see XHR options |
this code will send user information based on name/last name
var jSonRequest = new Json.Remote("http://site.com/tellMeAge.php", {onComplete: function(person){ alert(person.age); //is 25 years alert(person.height); //is 170 cm alert(person.weight); //is 120 kg }}).send({'name': 'John', 'lastName': 'Doe'});
Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi