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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop-Up - Please Wait While Page Loads

Status
Not open for further replies.

jalbao

Programmer
Nov 27, 2000
413
US
in my application, i have a form (on page1.htm) that when the user clicks a submit button, a new page is called (page2.htm). On page2.htm there is a bunch of stuff going on on the server side which causes the page2.htm to load relatively slow. I would like to have a page3.htm pop-up after the user clicks the page1.htm submit button that lets the user know that he will have to wait about a minute. Then when page2.htm is finished loading, i would like page3.htm close automatically...

is this possible, and if so, how?


TIA
jed
 
You could just have an absolutely positioned 'layer' if you like with the message - then hide it onLoad.
b2 - benbiddington@surf4nix.com
 
something like this should work (but I haven't tested it):

in page1:

window.open("page3.htm","mywin")

in page2:
<body onload=&quot;closeWin()&quot;>
<script>
function closeWin()
{
x=window.open(&quot;&quot;,&quot;mywin&quot;)
x.close()
}
</script>
jaredn@eae.net -
 
here's how to do it without popups
in page1.htm in the <form> tag add

onSubmit=&quot;document.write('<html><center><br><br><font face=arial><b>Processing...<br><br>Please Wait<br><br></b><img src=images/animated_bar.gif><br>(process may take a few minutes)</font></html>')&quot;

or try something like this in page3.htm if you want popups...
<body onLoad=&quot;location.href='page2.htm'&quot;>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top