JavaScript and Services: JSON Server + JSON + JSONP // + MooTools // Discussions
Posted by yajnin on July 17, 2009 at 9:56pm
UPDATE
This thread expanded into general discussions with JavaScript and Services. There are couple MooToolers here so many examples are MT oriented. However, the principals would carry to jQuery et al.
This thread will be maintained every couple months.
Original Post
////// JSON Server + MooTools Request.JSON
var jsonRequest = new Request.JSON({
url: "http://yourdomain.com/services/json",
onSuccess: function(response){
var myDataArray = response['#data'];
// Manipulate data as necessary
}
}).send({ 'data': {
Read more