How to interrupt a get URL http... command

Michael Kann mikekann at yahoo.com
Tue Jan 12 23:59:42 EST 2010


on mouseUp
put "http://www.runrev.com" into curURL
load url curURL
put the cachedURLS into fld 1 // to see what you have loaded
put url curURL  into fld 2    // will load from cache
end mouseUp

From the dictionary:

To use a file that has been downloaded by the load command, refer to it using the URL keyword as usual. When you request the original URL, Revolution uses the cached file automatically.

--- On Tue, 1/12/10, Bill Vlahos <bvlahos at mac.com> wrote:

> From: Bill Vlahos <bvlahos at mac.com>
> Subject: Re: How to interrupt a get URL http... command
> To: "How to use Revolution" <use-revolution at lists.runrev.com>
> Date: Tuesday, January 12, 2010, 10:19 PM
> OK. I'm able to "load" the URL to the
> cache. How do I get the text of the downloaded web page?
> 
> I see the file in the list of cached urls but I don't see
> how to get the text.
> 
> Bill Vlahos
> 
> On Jan 11, 2010, at 11:27 PM, Bill Vlahos wrote:
> 
> > Scott,
> > 
> > Perfect. Thank you.
> > 
> > Bill Vlahos
> > 
> > On Jan 11, 2010, at 10:14 PM, Scott Rossi wrote:
> > 
> >> 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?
> >> 
> >> 
> >> 
> >> 
> >> _______________________________________________
> >> use-revolution mailing list
> >> use-revolution at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe
> and manage your subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> > 
> > Bill Vlahos
> > _________________
> > InfoWallet (http://www.infowallet.com) helps me
> remember the important details of my life.
> > 
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and
> manage your subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


      



More information about the use-livecode mailing list