Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: '/path/to/file',
- type: 'default GET (Other values: POST)',
- dataType: 'default: Intelligent Guess (Other values: xml, json, script, or html)',
- data: {param1: 'value1'},
- })
- .done(function() {
- console.log("success");
- })
- .fail(function() {
- console.log("error");
- })
- .always(function() {
- console.log("complete");
- });
Advertisement
Add Comment
Please, Sign In to add comment