Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: url,
- type: 'POST',
- data: data, //json object
- dataType: 'json'
- }).done(function (result) {
- //update DOM
- }).fail(function (result) {
- //request failed
- }).always(function (result) {
- //this always happens, cleanup (remove spinning wait thingy maybe?)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement