Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Progress bar is not appearing when java script is executing.

 
Balaji Soundarajan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • 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
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • 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.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
There you have completely no control over.

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