Load and stacks...

David Bovill david at openpartnership.net
Mon Jan 22 13:44:46 EST 2007


Ah... well I guess the docs need changeing :)

Summary:
Downloads a file from an Internet server asynchronously via FTP.



On 22/01/07, Dave Cragg <dave.cragg at lacscentre.co.uk> wrote:
>
>
> On 22 Jan 2007, at 16:39, David Bovill wrote:
>
> > On 21/01/07, Dave Cragg <dave.cragg at lacscentre.co.uk> wrote:
> >
> > You could use libUrlDownloadToFile to do an asynchronous load
> >> directly to a file instead of the cache. Or in the callback message
> >> for load, save the url to a local file. For example:
> >>
> >> load url myUrl with message "loaded"
> >>
> >> on loaded pUrl, pStatus
> >>    if pStatus = "cached" then
> >>      put url pUrl into url ("binfile:" & pathToLocalFile)
> >>    end if
> >>    unload url pUrl
> >> end loaded
> >
> >
> > Ah - thanks that should work. NB as "libUrlDownloadToFile" uses
> > "ftp" rather
> > than "http" which "load" uses...
>
> You can use both load and libUrlDownloadToFile with http and ftp urls.
>
> Cheers
> Dave
>
> _______________________________________________
> 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