View Single Post
  #2 (permalink)  
Old 03-10-2007, 06:57 AM
killerkev06 killerkev06 is offline
Persona Non Grata
 
Join Date: Mar 2007
Posts: 124
iTrader: (0)
killerkev06 is on a distinguished road
Default

onReadyStateChange

As the name kind of implies, every time the "ready state" changes this function will be executed.

When the property readyState is 4 that means the response is complete and we can get our data.

Then the function that is repeatedly called can use the information depending on the readyState.

This basically ensures that only if the request has completed correctly your script will execute as you wish.

Kev
Reply With Quote
Sponsored Links
Register and sign in to hide this ad block