Re: Checking whether a website has loaded completely
Re: Checking whether a website has loaded completely
- Subject: Re: Checking whether a website has loaded completely
- From: JJ <email@hidden>
- Date: Fri, 24 May 2002 11:20:32 +0200
[...]
>
The problem is that the script has to wait until the website has
>
loaded completely.
>
Then it will work to scroll to the stored positions.
>
>
How can I determine whether the site has loaded?
>
>
I've tried:
>
>
do script "window.captureEvents(Event.LOAD) window 1
>
>
but this returns no value!
Just know I can't remember if it does exists any JScript method to check
this, and if mac's IE supports it.
But you can check two things: if you can get the source (which means that
all the text has loaded) and check for "complete" status of images and
embeds.
| | | NOT TESTED | | |
for (i=0; i=document.images.length; i++) {
do {}
while (!= document.images[i].complete)
}
_________
JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.