Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Ajax.Request(api_root + 'update_status',
- {
- method:'post',
- parameters: {username: 'john', password: 'mother', text='haaaaa'},
- onSuccess: function(transport) {
- var response = transport.responseText || "no response text";
- alert("congratulations you posted a dent");
- },
- onFailure: function(){ alert('na it\'s shit') }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement