Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XMLHttpRequest open xml file for data validation.  RSS feed

 
gah hon
Greenhorn
Posts: 28
C++ Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to check and validate some data against the XML file.

I have something code in my .js file


in the login.php will load the XML file and check against the data.
But how can I know is login.php check=true or false.



Can I check the data by doing XMLHttpRequest.ResponseText == true and not doing readyState and status?

any advise will be appriecate
 
gah hon
Greenhorn
Posts: 28
C++ Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Now this is work as expected.
But I have one question is when need to using the check of readyState = 400 and status = 2 ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!