Load URL doesn't send message

Eric Chatonet eric.chatonet at sosmartsoftware.com
Fri Jul 29 17:23:36 EDT 2005


If I dare ;-)

send "checkStatus" && tURL to me in 50 milliseconds

Jacque, note that 50 milliseconds might appear a bit slow with light  
files and fast connection.
My two cents.

Best Regards from Paris,

Eric Chatonet.

Le 29 juil. 05 à 23:18, Dave Cragg a écrit :

> 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.

----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------




More information about the Use-livecode mailing list