JavaScript - JSON Server & Request.JSON (MooTools Example)
Last updated on
30 April 2025
JavaScript - JSON Server & Request.JSON (MooTools Example)
// Modules
// // # SERVICES 6.x-2.0 and JSON SERVER 6.x-2.0-alpha1
// + + Data Object
Node.Save (and edit)
http://drupal.org/node/774116
Comment.Save
http://drupal.org/node/788892
// + + Services Request
var jsonRequest = new Request.JSON({
url: "http://example.com/services/json",
onSuccess: function(response){
var myDataArray = response['#data'];
// Manipulate data as necessary
}
}).send({ data: data });
// #### Reference: Services & JavaScript
JavaScript - Node.Save & Edit // Cross-method Insights
http://drupal.org/node/774116
JavaScript - CCK Fields in the Node Object // Cross-method Insights
http://drupal.org/node/776122
JavaScript - Comment.Save
http://drupal.org/node/788892
JavaScript - JSON Server // Request.JSON (MooTools Example)
http://drupal.org/node/522942
JavaScript - JSON Server // Request.JSONP (MooTools Example)
http://drupal.org/node/791922
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion