What is a successful handler for when $ .post succeeds, what happens if it fails? Is there any handler that we can use for this matter, so that we can inform the user that something is not doing well?
What do you have to do, if you want to both success and unsuccessful handler, low-level $ Post is not according to a specific error handler for the method.
$ Using the Ajax method, this documentation can be found here:
$. Ajax ({type: "POST", url: "some.php", success: function (html) {/ * content of success here}, error: function () {/ * error stuff is here} );
Comments
Post a Comment