Last active
August 29, 2015 13:56
-
-
Save gcamrit/9114252 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: 'GET',// you can use post also :P | |
url: ajax.php, // your ajax controller file here | |
dataType: 'json', | |
data: { firstcol: firstcol, secondcol: secondcol, thirdcol: thirdcol,id: id,updatecol:true }, | |
beforeSend: function () { | |
// here we append a loading image | |
}, | |
success: function (data) { | |
// successful request; do something with the data | |
console.log(data); | |
}, | |
error: function () { | |
// failed request; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment