1.

What is AJAX event?

Answer»

Ajax requests produce a wide variety of distinctive occasions that you can subscribe to. Here's a full LISTING of the ACTIVITIES and in what order they are triggered.

There are 2 types of events in Ajax
  • Local Events: Local Events are callbacks that you can subscribe to inside the Ajax request object.
  • Global Events: Global events are triggered on the DOCUMENT, calling any handlers who may be listening.
Also Read: JQuery practical interview questions and answersExample Example of Local Events

$.ajax({
    beforeSend: FUNCTION(){

    },
    complete: function(){

    }
});

Example of Global Events

$.ajax({
   URL: "bestinterviewquestion.html",
   global: false,
});



Discussion

No Comment Found