using jquery UI progresssbar

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

using jquery UI progresssbar

#1

Postby HarryDeBoer » Sat Mar 22, 2014 3:32 pm

Hi,

what are the steps to invoke a(n jquery UI) progressbar to an appliacation. I can't quite figure out how to attach it to an element and how to use it. I need to show a progressbar on importing data from a csv file.

Regards, Harry
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Mar 24, 2014 12:12 pm

Harry,

I haven't actually used a jQuery progress bar, but the basics look simple enough: add a Panel Control to the page - this will give you a <div> - and give it an id, say "progressbar" using Html Element Properties. Then add a jQuery ready event to the Panel Control to set up the progress bar, again using Html Element Properties e.g.

Code: Select all

$&#40; "#progressbar" &#41;.progressbar&#40;&#123;
  value&#58; 37
&#125;&#41;;
Above example taken from the jQuery UI online documentation.

So this should set up your progress bar. I imagine that the tricky part is going to be updating it with the progress and finally getting rid of it. I think the logic to do this must be driven from the client e.g. set up a Javascript timer to wake up every second or so, call the server using the client API $eb... and retrieve the current progress. When it's finished, call the server again and hide the Panel Control, or something similar to get rid of the progress bar. And then finally cancel the timer.

Sorry not to provide something more specific. Maybe someone else has actually done this?

Regards
Jon
0 x


Who is online

Users browsing this forum: No registered users and 4 guests