JavaScript - JSON Server & Request.JSON (MooTools Example)
You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules
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
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