aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Doubt with this JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Doubt with this JavaScript" Watch "Doubt with this JavaScript" New topic
Author

Doubt with this JavaScript

Vijay Chandran
Ranch Hand

Joined: Jan 07, 2007
Posts: 178


Dear friends,

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
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.

http://developer.apple.com/internet/webcontent/xmlhttpreq.html

Eric
Vijay Chandran
Ranch Hand

Joined: Jan 07, 2007
Posts: 178
Ok, Very silly doubt asked by me.

Thank you very much Eric for the response.

Regards,
Vijay
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It is a very common question.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt with this JavaScript