How to interrupt a get URL http... command
Scott Rossi
scott at tactilemedia.com
Tue Jan 12 01:14:31 EST 2010
In some of my stacks, I use "loadURL <URL>" to download a stack, and "unload
url <URL>" to cancel an active download. I believe this will still work if
the download hangs. I also use an animated indicator (to show things are
active during the download) which is stopped as soon as a download is
canceled or completed.
Hope this helps.
Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
Recently, Bill Vlahos wrote:
> I issue a "get URL "http://..." command to load a very small file from the web
> page. This usually behaves well and loads instantly even on slow network
> connections because the http file. If there is good a good network connection
> to the Internet it gets the download. If there isn't a connection at all it
> downloads nothing and errors out well and if usually notifies the user very
> quickly.
>
> However, I sometimes the Internet connection is either extremely slow or
> otherwise problematic. In this case nothing appears to be happening until the
> statement times out. Unfortunately waiting for it to time out takes a long
> time to the user and I want to give them a chance to cancel it.
>
> The Rev docs suggest using the "load" command instead. The Rev docs state
> that "get URL" commands are blocking. The handler pauses until Rev is finished
> accessing the URL. I would like to present a "Cancel download" button to the
> user in the event it is taking too long. How do I configure this?
More information about the use-livecode
mailing list