JavaScript - JSON Server & Request.JSON (MooTools Example)

Last updated on
30 April 2025

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

Page status: Not set

You can: