• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Progress bar is not appearing when java script is executing.

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using JSF in my project.i am calling javascript function in the command button.The java script function taking one minute to complete.in that time,the progress bar is not displayed in IE. Can we have progress bar while java script execution?

Please do the needfull.

Thanks
--Balaji.S
 
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure you can...

All you need is a progress bar imitating gif file and place it in a <div> in your webpage, and hide it at page load. Now, when you want to execute the javascript function which you mentioned is time consuming, un-hide this <div>. You can hide it again once the execution of script is completed.

Else if you want to be more adventurous, you can create the progress bar magic using <div> and <span> tags alone, without the gif.

Dawn.
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What progress bar are you talking about? The one which you wrote in JS or the browser's default one? You should not rely on the webbrowser used. Just let JS display/change some progress bar or the cursor style using HTML DOM and CSS.
 
Balaji Soundarajan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply, here i am talking about the web browser progress bar.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There you have completely no control over.

Play more with DOM/CSS.
reply
    Bookmark Topic Watch Topic
  • New Topic