• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checking whether a website has loaded completely
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Why does scripting Xpress have to be such a pain...
  • Next by Date: Re: OSAX on X
  • Previous by thread: Re: Checking whether a website has loaded completely
  • Next by thread: Re: Checking whether a website has loaded completely
  • Index(es):
    • Date
    • Thread