Sign Up
Tutor Hunt on twitter Tutor Hunt on facebook

Tutor HuntQuestions

Tutor Hunt Questions

How to get ajax success and failure call backs ?
23 months ago

AJAX Question asked by Fakhir

Know the Answer?

Please enter your response to the question below. The student will get a notification as soon your response has been approved by our moderation team.

Submit Answer

1 Answer

This can be achieved by using Javascri pt Promise object. A Javascri pt Promise is an object that represents a result of an Ajax request (in fact any asynchronous request). The $.ajax() method returns jqXHR object and jqXHR implements the Promise interface. Hence, upon calling $.ajax() you can use done(), fail() and always() methods of the Promise interface to wire the respective callback functions
Answered by Malik | 17 months ago
    Rate Up  Rate Down     
Ask an Academic Question
Popular Links
© 2005-2017 Tutor Hunt - All Rights Reserved

Privacy | Copyright | Terms of Service
loaded in 0.016 seconds
twitter    facebook