libURLSetStatusCallback and progress bar
Posted: Fri Sep 25, 2009 12:35 pm
Revolution 3.5
While doing an upload on the web server, I cannot get the progress bar to update (the screen is frozen...and updated regularly only at the very end).
On the main stack I have a
on the scrollbar script I have a
I tried with Screen Debug off, with a compiled application, and replacing the
with
In this last case the msg is filled only at the and of the operation
No result without the lock unlock screen...
Any clue ?
Thanks
While doing an upload on the web server, I cannot get the progress bar to update (the screen is frozen...and updated regularly only at the very end).
On the main stack I have a
Code: Select all
put ThePageContent into URL ("file:" & PagePath)
libURLSetStatusCallback "myProgress",the long ID of scrollbar "ScrollbarTC" of stack "attesa"
Code: Select all
on myProgress theURL,theStatus
lock screen
put theStatus into fld "ConnessioneFld" of stack "Attesa"
put the thumbPosition of scrollbar "ScrollbarTC" of stack "attesa" into conteggio
add 1 to conteggio
set the thumbPosition of scrollbar "ScrollbarTC" of stack "attesa" to conteggio
unlock screen
end myProgress
Code: Select all
put theStatus into fld "ConnessioneFld" of stack "Attesa"
Code: Select all
put theStatus & return after msg
No result without the lock unlock screen...
Any clue ?
Thanks