This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt with this JavaScript

 
Vijay Chandran
Ranch Hand
Posts: 186
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 186
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, Very silly doubt asked by me.

Thank you very much Eric for the response.

Regards,
Vijay
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a very common question.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic