Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: JavaScript  |  size: 0.42 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. save_json = JSON.stringify( save );
  2.          var dataString = 'saveObject=' + save_json;
  3.          $.ajax({
  4.             'type'     : 'POST',
  5.             'url'      : 'save.php',
  6.             'data'     : dataString,
  7.             'dataType' : 'json',
  8.             'succuess' : function(data, textStatus){
  9.                console.log(textStatus);
  10.                console.log( $.parseJSON( data ));
  11.             }
  12.          });