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?