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

Popup question

Status
Not open for further replies.

TPetersonFlorida

Programmer
Aug 8, 2003
76
US
I want to popup a window with a message while the rest of my asp page processes and then at the end of the code close the popup window that i opened up. Can I do this and if so how ????
 
What I usually do is to make the calling page disappear and then show a loading message until the new page is done...

pageOne.htm

<script>
function subForm(){
document.getElementById(&quot;wholePage&quot;).style.display = &quot;none&quot;
showMess()
}

function showMess(){
thisDiv = document.getElementById(&quot;message&quot;)
if (thisDiv.innerHTML == &quot;&quot;){
thisDiv.innerHTML = &quot;<h2>Loading</h2>&quot;
}
else{
thisDiv.innerHTML = &quot;&quot;
}
setTimeout(&quot;showMess()&quot;,1000)
}
</script>

<body>
<div id=&quot;wholePage&quot;>
...
...
page contents here
...
...
...
<input type=button onClick=&quot;subForm()&quot; value=&quot;Submit&quot;>
...
</div>
<div id=&quot;message&quot;></div>
</body>



Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top