Skip to content

Instantly share code, notes, and snippets.

var json = {};
json['title'] = 'jordan';
json['type'] = 'page';
json['body'] = 'this is the body text';
$.ajax({
url: "http://demo2.idonate.com/node_resource/node",
dataType: "json",
type: "POST",
contentType: 'application/json',
$(document).ready(function(){
idonate.loadForm('.form-container');
});
idonate = {
postNode : function(){
$(document).ready(function(){
idonate.loadForm('.form-container');
});
idonate = {
postNode : function(){
},
serialize : function(){
var o = {};
var a = this.serializeArray();