Load URL doesn't send message
Dave Cragg
dcragg at lacscentre.co.uk
Fri Jul 29 17:18:17 EDT 2005
On 29 Jul 2005, at 21:22, J. Landman Gay wrote:
>
> I've simplified my script a lot for testing. This is what I'm using
> at the moment:
>
> on downloadFile tURL
> unload url tURL -- just for testing, so I can reuse it
> load url tURL with message "saveFile"
> get the result
> if it <> "" then answer it
> checkStatus tURL
> end downloadFile
>
> on checkStatus tURL
> put urlStatus(tURL) into tStatus
> if tStatus contains "loading" then
> set the endValue of sb "progress" to item -1 of tStatus
> set the thumbPos of sb "progress" to item -2 of tStatus
> else
> put tStatus
> end if
> if tStatus is not among the items of "cached,error,timeout" then
> send "checkStatus" to me in 50 milliseconds ###ERROR HERE
> end if
> end checkStatus
>
> on saveFile tURL,tStatus
> answer "SAVEFILE MESSAGE RECEIVED"
> end saveFile
It should be:
send "checkStatus tURL" to me in 50 milliseconds
This would explain the empty status results.
However, even with that error, I was still seeing the final message
answer dialog. I gather you're not seeing that. Can you let me know
if you're still having problems.
Cheers
Dave
More information about the use-livecode
mailing list