I am trying to find out how to echo all the http events when the page is loading
sometihng that reads when the httpevent changes echo new event
What do you mean by http events? Can you be more descriptive, please?
like status = 4 or status 200, or status 404.
When the browser changes there staatus event
The HTTP status is sent by the server once for each request. And I'm fairly certain that you can just check xmlhttp.status wherein xmlhttp is an instance of XMLHTTPRequest. The status attribute should be set when the server responds and should remain the same until the object is reused for another request ...
well, 4 is a readystate, which does change, but 200 and 400 don't change, so they don't need an event.
Originally Posted by moiseszaragoza
you probably should look into onreadystatechange()...
Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)