Progress Bar in Web Client

Forum to discuss the Web client version of Servoy.

Progress Bar in Web Client

Postby xav » Wed Jun 06, 2012 6:27 am

I seem to be having difficulty having the Progress Bar work correctly in the Web client? When uploading a file, the progress bar hangs until it's complete and then completes. Any ideas here? Seems to be working fine in the Servoy Client.
xav
 
Posts: 1
Joined: Wed Jun 06, 2012 2:18 am
Location: San Francisco

Re: Progress Bar in Web Client

Postby david » Wed Jun 06, 2012 6:21 pm

Web client is slightly different than Smart client in that the UI doesn't update until a method is finished.

However, I do believe that with the monitor functionality of file streaming you can update the web UI as file streaming utilizes multiple threads. Check out Patrick's file streaming tutorial: https://www.servoyforge.net/news/43
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Progress Bar in Web Client

Postby jcompagner » Thu Jun 07, 2012 3:30 pm

the file streaming stuff of the File plugin doesn't make much sense to the WebClient!

Because you stream from a client instance to the server, but the webclient client instance is already on the server, so you just stream to itself..

Currently streaming from the browser to the server is an action that doesn't have a progress, because you just have to wait for the upload to be finished.
This could be improved somehow by doing the upload in an iframe or something and then have another iframe checking its progress (or use some flash upload tool)
And maybe html5 has some other stuff that makes it nicer to use..
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 5 guests