When i execute this script in MS-IE 7.0 browser, the Ready State 7: is alerted first and then the Ready State 6: is alerted. What is the reason behind this? I have started learning AJAX now. Kindly clear my doubt.
Thanks & Regards, Vijay
posted 8 years ago
What would you expect to happen here?
onreadystatechange is called when the readystate changes. When you call send, the readystate changes. It is just like calling the function foo in my example.