action script

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
z3cka's picture

Services API Documentation

node.save

I had a very tough time finding what arguments were required by node.save... I finally guessed that a new node needed a "created" timestamp argument. Where should I post the following?

For new node creation be sure to set the creation time of the node:

var my_date:Date = new Date();
nodeObject.created = my_date.getTime();

and for editing existing nodes, be sure to set the changed time of the node:
var my_date:Date = new Date();
nodeObject.changed = my_date.getTime()
Read more
Subscribe with RSS Syndicate content