Quote:
Originally Posted by devnull69
Have a heart and share the solution with us!
|
I think:
1. The open() method needs a third, Boolean, argument, which should control the type of the request: asynchronous (true) or synchronous (false)
Code:
http.open('get', URL, true);
2. Usually is useful to test the
status of the document as well, not only the readyState property:
Code:
if(http.readyState == 4){
if(http.status==200){
...
}
}