"This is important is because, depending on which browser you use, it might call the process() method before the URL completely loads. That's why it's imperative to check the status of the document and continue only if it's ready (and shows a value of 4). Once ready, you then update the contents of the <textarea> with the document at the URL you specified -- in this case, the example Web page itself. Hopefully, you can see how with this technique, in combination with DHTML, you can dynamically and asynchronously update portions of a Web page with minimal impact on the reader."
|