View Single Post
  #1 (permalink)  
Old 03-10-2007, 04:44 AM
spinker.spanker spinker.spanker is offline
Persona Non Grata
 
Join Date: Mar 2007
Posts: 72
iTrader: (0)
spinker.spanker is on a distinguished road
Default A question on AJAX

I was looking through DynamicDrive's AJAX section and found a script that caught my eye. i had a look at the code for it and found something odd. it had no onreadystatechange function. instead it had this:

Code:
page_request.open('GET', url, false) 
page_request.send(null) 
someFunction(page_request)
So my questions are as follows.
Is onreadystatechange actually needed?
What are the advantages of it? and
Why do most AJAX scripts use it at all if it is not necessary?
Reply With Quote
Sponsored Links
Register and sign in to hide this ad block