how many states are there in ajax

There are four states in ajax

  • Initialization
  • Request
  • Process
  • Ready

Definition of states and implemention:

Initialization: first this state is active when user in a mood to get some data from server ; process is started

Request: second state of ajax comes when user has completed the request and it goes to server

Process : third state of ajax comes when server has completed the request and processed upon it

Ready : fourth state of ajax comes when everything is ok and complete and user sees the result