--%>

Functions of states of the XMLHttpRequest

Mention the different states of the XMLHttpRequest an dalso describe their functions.

E

Expert

Verified

Different states of XMLHttpRequest object are described as:

1. Loaded – This refers to a state when procedure is finished and the whole data is available.

2. Open – This refers to a state when a object has been created; but, the send function hasn’t been invoked.

3. Sent: This refers to a state when send function is invoked; but, status and headers are not available.

4. Receiving: This refers to a state when a process is receiving data.

5. Uninitialized: This refers to state when a object hasn’t been initialized.

   Related Questions in Programming Languages