urlStatus on Windows does not work
Posted: Tue Mar 31, 2009 9:51 pm
Hello, I'm using that flag to detect when a stack download was completed, but in Windows it always remain to "connected".
I even tried using my local Apache server or using my hosted remote site. Here the code:
Cache does not work, infact it seems always empty, furthermore:
repeat while ( (the urlStatus of myUrl) is not "cached") and (myTimer < myTimerStart)
the flag (the urlStatus of myUrl) is always "connected".
Can you help me?
Thank you!
I even tried using my local Apache server or using my hosted remote site. Here the code:
Code: Select all
on openStack
global myUrl
local myTimer, myTimerStart
put "http://127.0.0.1/stacks/fConsole.rev" into myUrl
if myURL is not among the lines of the cachedURLs then
load url myUrl with message "downloadComplete"
put 15 into myTimerStart
put 0 into myTimer
put "Looking for Console..." into field "labLoadInProgress"
repeat while ( (the urlStatus of myUrl) is not "cached") and (myTimer < myTimerStart)
put (the urlStatus of myUrl) & "..." && (myTimerStart - myTimer) into field "labLoadInProgress"
wait for 0.5 seconds
add 1 to myTimer
end repeat
else
send "downloadComplete" to this stack in 1 milliseconds
end if
end openStack
-----------------------------------------------------------------------------------------------------------
on downloadComplete
global myUrl
put "All done." into field "labLoadInProgress"
wait 3 seconds
go stack url myUrl
end downloadComplete
repeat while ( (the urlStatus of myUrl) is not "cached") and (myTimer < myTimerStart)
the flag (the urlStatus of myUrl) is always "connected".
Can you help me?
Thank you!