Need very simple ''progress bar'' or a ''Please wait notice'' in javascript

I have a JSF portlet app, made in JSC. It uses remote EJB calls and some calls take a long time to finish. E.g. User clicks a button, some data are gathered, sent to an EJB and the app. is waiting for reply.

For the user it looks like this: Click ... Internet Explorer progress bar flashes, nothing happens for 30s, then the progress bar starts from zero again and loads the next page in 15s.

So I need a very simple notice in the middle of the screen, that will just say "Take a break, don't click the button again, please! ... " and animate a clock, a bar or whatever, maybe disabling the window so the user will not be able to push buttons. (The users are annoying folk!)

The message should dissapear as soon as the next (or the same) page loads.

I've never did javascript, so if anybody has a simple example code, I will be grateful and give him a duke or two. (And I really don't need the AJAX super-components)

[951 byte] By [Martin777a] at [2007-11-26 19:12:52]
# 1
Hi!Try to lok here: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/aja xprogressbar.htmlProbably it will be helpful for You.Thanks,Roman.
-Grif-a at 2007-7-9 21:11:50 > top of Java-index,Development Tools,Java Tools...
# 2
;-)Thanks, but thats exactly what I didn't want. Another 2MB library added to the portlet for a simple progress bar.
Martin777a at 2007-7-9 21:11:50 > top of Java-index,Development Tools,Java Tools...
# 3
Here are some links http://www.webconcerns.co.uk/javascript/progressbar/progressbar.asp http://www.javascriptkit.com/script/script2/progressbar.shtmlHTHFrank
Fast_Franka at 2007-7-9 21:11:50 > top of Java-index,Development Tools,Java Tools...
# 4
Here is another link for just a "Please wait" message or animated gif http://www.jsffaq.com/Wiki.jsp?page=HowToImplementPleaseWait...Page
me_davea at 2007-7-9 21:11:50 > top of Java-index,Development Tools,Java Tools...
# 5
Thanks, I'll look at the examples and if I use any, the dukes are yours.
Martin777a at 2007-7-9 21:11:50 > top of Java-index,Development Tools,Java Tools...
# 6

I've used something similar to this. I can't add another DIV because visual designer have problems with that, but I've used opacity, so when user clicks a button, I set opacity of the main DIV to 50% and it looks like disabled page. It's more or less psychological effect, but IT WORKS WITH REAL PEOPLE ;))

By this I mean the me_dave link :)

Message was edited by:

Martin777

Martin777a at 2007-7-9 21:11:51 > top of Java-index,Development Tools,Java Tools...
# 7

Martin, best of luck, i fought this same problem last year.

Even when I got a progress bar on my page, it would not "animate" as IE apparently does not animate gifs after a form is submitted (and before the page is destroyed). I think I eventually got around this by adding an onclick event to my form submit that reset the image.

Best of luck.

Ideally, is there anyway that we can get this IE behavior (page loads, waits for X times, page loads again correctly) fixed? This is highly confusing to my clients.

jbjonesjra at 2007-7-9 21:11:51 > top of Java-index,Development Tools,Java Tools...