Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading message with image

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
I'm trying to display a loading message while the page is being loaded. On IE, the image is not
changing the color. I'm talking about the image that has some dots in color that looks like a progress bar.
It works fine in FF. How can I fixed it so that it will work with IE as well.

If the form is posted back to the same page, it works just fine. But if it's post to another page then it stop working.

I have tried setTimeout() to delay a few second but it still didn't work.

Thanks.




<div id="wait" style="display:none">
<table>
<tr><td>Please wait ...<br><img id="imgWait" src"wait.gif"></td></tr>
</table>
</div>

<div id="main>
<form ....>
...blab..
<input type="button" onclick="wait()">
</div>


function wait() {
document.getElementById("main").style.display="none";
document.getElementById("wait").style.display="block";
 
Oh, I forgot to mention that I'm working with jsf page. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top