1.

What is the purpose of the callback function in AJAX?

Answer»

In AJAX, the callback functions AID in handling responses from the server. Such functions can either be a named FUNCTION (that developers use frequently) or an ANONYMOUS function. Developers can IMPLEMENT a broad spectrum of AJAX tasks on a website by simply creating a function that does the XMLHttpRequest execution along with a callback function, which accomplishes each AJAX TASK.



Discussion

No Comment Found