Load and stacks...

Dave Cragg dave.cragg at lacscentre.co.uk
Mon Jan 22 12:37:49 EST 2007


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




More information about the use-livecode mailing list