Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new Ajax.Request(api_root + 'update_status',
  2.   {
  3.     method:'post',
  4.     parameters: {username: 'john', password: 'mother', text='haaaaa'},
  5.     onSuccess: function(transport) {
  6.       var response = transport.responseText || "no response text";
  7.       alert("congratulations you posted a dent");
  8.     },
  9.     onFailure: function(){ alert('na it\'s shit') }
  10.   });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement