Community Documentation

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

Last updated May 19, 2010. Created by yajnin on July 17, 2009.
Edited by heyrocker, bertboerland. Log in to edit this page.

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

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Audience
Programmers

Develop for Drupal

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here