<html><body>
<% If Not Request.QueryString("zhid") = "showrecords" Then %>
<!-- PAGE 1 -->
<script language="JavaScript">
function myFunc(){
MyWindow=window.open('about
:blank','MyWindow','too lbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=no,resizable=no,width=400,height= 200,left=200,top=100');
//IGNORE NEXT LINE ... JUST TO SIMULATE
PROCESSING PAUSE
for (i = 0; i <= 2000000; i++){}
}
</script>
<form name="myForm" action="?">
<input type="hidden" name="zhid" value="showrecords">
<input type="submit" name="theButton" value="Submit"
onClick="myFunc();">
</form>
<% Else %>
<!-- PAGE 2 -->
<script language="JavaScript">
MyWindow=window.open('','MyWindow','');
MyWindow.close();
</script>
Displaying Records
<% End If %>
</body></html>
I was just testing within one page ... the main thing is you have to
opwn the window again on the second page, and immediately close it
Brynn
www.coolpier.com
p.s. I do asp and javascript group ... thanks for posting in the
correct group =)
On Wed, 21 Jan 2004 14:12:46 +0100, "Sjaakie Helderhorst"
<pr**********@tell.you> wrote:
Hi,
I wrote an ASP-page which allows friends to upload a datafile which will be
processed and stored in a database. Because large files take some time to
process I want to open a popup 'Please wait, processing' with some fancy
graphics. So, onSubmit -> check form and open popup if correct.
When data is written into the database (and summary page has finished
loading) I want to close the popup.... although I named it winDialog
(winDialog = window.open(...)) the new page tells me it can't find this
popup ( if (window.winDialog) { winDialog.close() } ). Can anyone tell me
what's wrong? Maybe I'm doing things wrong. Or could you perhaps put me in a
right direction...
Thanks!
Brynn
www.coolpier.com
I participate in the group to help give examples of code.
I do not guarantee the effects of any code posted.
Test all code before use!