Json. Remote.js

Contains Json.Remote.

License

MIT-style license.

Summary
Json. Remote.jsContains Json.Remote.
Json. RemoteWrapped XHR with automated sending and receiving of Javascript Objects in Json Format.

Json. Remote

Wrapped XHR with automated sending and receiving of Javascript Objects in Json Format.  Inherits methods, properties, options and events from XHR.

Arguments

urlthe url you want to send your object to.
optionssee XHR options

Example

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'});
Wrapped XHR with automated sending and receiving of Javascript Objects in Json Format.
Basic XMLHttpRequest Wrapper.

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi