AJAX onreadystatechange & readyState
View Single Post
04-08-2013, 08:46 AM
Join Date: Jan 2010
Location: Behind the Wall
Thanked 327 Times in 323 Posts
Originally Posted by
how do I make the code 'wait' for xmlhttp.readyState==4?
you donít need to, the XMLHttpRequest object already waits for that (thatís why you have a readystatechange event).
The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
Andrť Behrens, NY Times Software Developer
View Public Profile
Find More Posts by Dormilich