Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: ASP to close IE browser window


Message #1 by "Jimm Panik" <jimm_panik@g...> on Thu, 22 Feb 2001 15:12:17 -0500
Sounds simple but how do I make the browser window close after my code

executes? I have a page that performs some actions and when it is finished,

I would like for the window to close. Any help?



Jimm Panik



Message #2 by "Ken Schaefer" <ken@a...> on Fri, 23 Feb 2001 14:14:53 +1100
You need to do this client-side, eg using javascript:



self.close()



Cheers

Ken



----- Original Message -----

From: "Jimm Panik" <jimm_panik@g...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, February 23, 2001 7:12 AM

Subject: [asp_web_howto] ASP to close IE browser window





> Sounds simple but how do I make the browser window close after my code

> executes? I have a page that performs some actions and when it is

finished,

> I would like for the window to close. Any help?

>

> Jimm Panik





Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Fri, 23 Feb 2001 10:04:14 -0000
<script language="javascript">

window.close();

</script>



-----Original Message-----

From: Jimm Panik [mailto:jimm_panik@g...]

Sent: Thursday, February 22, 2001 8:12 PM

To: ASP Web HowTo

Subject: [asp_web_howto] ASP to close IE browser window





Sounds simple but how do I make the browser window close after my code

executes? I have a page that performs some actions and when it is finished,

I would like for the window to close. Any help?



Jimm Panik



_______________________________________________________________________

Scottish Enterprise Network

http://www.scottish-enterprise.com

Message #4 by Shaun Steckley <SSTECKLEY@P...> on Fri, 23 Feb 2001 09:06:07 -0500
<body onload="window.close()">



-----Original Message-----

From: Jimm Panik [mailto:jimm_panik@g...]

Sent: Thursday, February 22, 2001 3:12 PM

To: ASP Web HowTo

Subject: [asp_web_howto] ASP to close IE browser window





Sounds simple but how do I make the browser window close after my code

executes? I have a page that performs some actions and when it is finished,

I would like for the window to close. Any help?



Jimm Panik

Message #5 by "Jimm Panik" <Jimm_Panik@g...> on Fri, 23 Feb 2001 14:38:48
This makes a dialog screen appear asking if the window can be closed. Can 

we close the browser without asking?



> You need to do this client-side, eg using javascript:

> 

> self.close()

> 

> Cheers

> Ken

> 

> ----- Original Message -----

> From: "Jimm Panik" <jimm_panik@g...>

> To: "ASP Web HowTo" <asp_web_howto@p...>

> Sent: Friday, February 23, 2001 7:12 AM

> Subject: [asp_web_howto] ASP to close IE browser window

> 

> 

> > Sounds simple but how do I make the browser window close after my code

> > executes? I have a page that performs some actions and when it is

> finished,

> > I would like for the window to close. Any help?

> >

> > Jimm Panik

> 

> 

Message #6 by "TomMallard" <mallard@s...> on Fri, 23 Feb 2001 08:00:17 -0800
Quick answer, no, violates the client's security.



tom mallard

seattle

----- Original Message -----

From: "Jimm Panik" <Jimm_Panik@g...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, February 23, 2001 2:38 PM

Subject: [asp_web_howto] Re: ASP to close IE browser window





> This makes a dialog screen appear asking if the window can be closed. Can

> we close the browser without asking?

>

> > You need to do this client-side, eg using javascript:

> >

> > self.close()

> >

> > Cheers

> > Ken

> >

> > ----- Original Message -----

> > From: "Jimm Panik" <jimm_panik@g...>

> > To: "ASP Web HowTo" <asp_web_howto@p...>

> > Sent: Friday, February 23, 2001 7:12 AM

> > Subject: [asp_web_howto] ASP to close IE browser window

> >

> >

> > > Sounds simple but how do I make the browser window close after my code

> > > executes? I have a page that performs some actions and when it is

> > finished,

> > > I would like for the window to close. Any help?

> > >

> > > Jimm Panik

> >

> 
Message #7 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Fri, 23 Feb 2001 16:34:15 -0000
you will only get this prompt if it is the main window you are trying to

close.  if it is a child window (e.g. one opened with window.open()) you

will not get this prompt.



-----Original Message-----

From: TomMallard [mailto:mallard@s...]

Sent: Friday, February 23, 2001 4:00 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: ASP to close IE browser window





Quick answer, no, violates the client's security.



tom mallard

seattle

----- Original Message -----

From: "Jimm Panik" <Jimm_Panik@g...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, February 23, 2001 2:38 PM

Subject: [asp_web_howto] Re: ASP to close IE browser window





> This makes a dialog screen appear asking if the window can be closed. Can

> we close the browser without asking?

>

> > You need to do this client-side, eg using javascript:

> >

> > self.close()

> >

> > Cheers

> > Ken

> >

> > ----- Original Message -----

> > From: "Jimm Panik" <jimm_panik@g...>

> > To: "ASP Web HowTo" <asp_web_howto@p...>

> > Sent: Friday, February 23, 2001 7:12 AM

> > Subject: [asp_web_howto] ASP to close IE browser window

> >

> >

> > > Sounds simple but how do I make the browser window close after my code

> > > executes? I have a page that performs some actions and when it is

> > finished,

> > > I would like for the window to close. Any help?

> > >

> > > Jimm Panik

> >

> 

________________________________________________________________________

Scottish Enterprise Network

http://www.scottish-enterprise.com

Message #8 by Shaun Steckley <SSTECKLEY@P...> on Fri, 23 Feb 2001 14:23:35 -0500
And to add a piece, if the window has any history in the session...



-----Original Message-----

From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]

Sent: Friday, February 23, 2001 11:34 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: ASP to close IE browser window





you will only get this prompt if it is the main window you are trying to

close.  if it is a child window (e.g. one opened with window.open()) you

will not get this prompt.



-----Original Message-----

From: TomMallard [mailto:mallard@s...]

Sent: Friday, February 23, 2001 4:00 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: ASP to close IE browser window





Quick answer, no, violates the client's security.



tom mallard

seattle

----- Original Message -----

From: "Jimm Panik" <Jimm_Panik@g...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, February 23, 2001 2:38 PM

Subject: [asp_web_howto] Re: ASP to close IE browser window





> This makes a dialog screen appear asking if the window can be closed. Can

> we close the browser without asking?

>

> > You need to do this client-side, eg using javascript:

> >

> > self.close()

> >

> > Cheers

> > Ken

> >

> > ----- Original Message -----

> > From: "Jimm Panik" <jimm_panik@g...>

> > To: "ASP Web HowTo" <asp_web_howto@p...>

> > Sent: Friday, February 23, 2001 7:12 AM

> > Subject: [asp_web_howto] ASP to close IE browser window

> >

> >

> > > Sounds simple but how do I make the browser window close after my code

> > > executes? I have a page that performs some actions and when it is

> > finished,

> > > I would like for the window to close. Any help?

> > >

> > > Jimm Panik

> >

>
Message #9 by "Krishnanand K, J16 Chennai" <krishnanandk@m...> on Mon, 26 Feb 2001 16:58:04 +0530
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C09FE7.2EFC6AD0

Content-Type: text/plain;

	charset="iso-8859-1"



Hai shaun

Can u explain me much more clearly the statement " if the window has any

history in the session"

krishna

 -----Original Message-----

From: 	Shaun Steckley [mailto:SSTECKLEY@P...] 

Sent:	Saturday, February 24, 2001 12:54 AM

To:	ASP Web HowTo

Subject:	[asp_web_howto] Re: ASP to close IE browser window



And to add a piece, if the window has any history in the session...



-----Original Message-----

From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]

Sent: Friday, February 23, 2001 11:34 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: ASP to close IE browser window





you will only get this prompt if it is the main window you are trying to

close.  if it is a child window (e.g. one opened with window.open()) you

will not get this prompt.



-----Original Message-----

From: TomMallard [mailto:mallard@s...]

Sent: Friday, February 23, 2001 4:00 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: ASP to close IE browser window





Quick answer, no, violates the client's security.



tom mallard

seattle

----- Original Message -----

From: "Jimm Panik" <Jimm_Panik@g...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, February 23, 2001 2:38 PM

Subject: [asp_web_howto] Re: ASP to close IE browser window





> This makes a dialog screen appear asking if the window can be closed. Can

> we close the browser without asking?

>

> > You need to do this client-side, eg using javascript:

> >

> > self.close()

> >

> > Cheers

> > Ken

> >

> > ----- Original Message -----

> > From: "Jimm Panik" <jimm_panik@g...>

> > To: "ASP Web HowTo" <asp_web_howto@p...>

> > Sent: Friday, February 23, 2001 7:12 AM

> > Subject: [asp_web_howto] ASP to close IE browser window

> >

> >

> > > Sounds simple but how do I make the browser window close after my code

> > > executes? I have a page that performs some actions and when it is

> > finished,

> > > I would like for the window to close. Any help?

> > >

> > > Jimm Panik

> >

>



krishnanandk@m...


$subst('Email.Unsub')




Message #10 by Shaun Steckley <SSTECKLEY@P...> on Mon, 26 Feb 2001 09:52:03 -0500
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C0A003.AE38D4C0

Content-Type: text/plain; charset="iso-8859-1"



Supposedly,

You can close the initial (main) window if no prior history is in the

browser session.  I have not really looked into this much, so I can not give

you a lot of information about it...



-----Original Message-----

From: Krishnanand K, J16 Chennai [mailto:krishnanandk@m...]

Sent: Monday, February 26, 2001 6:28 AM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: ASP to close IE browser window







Hai shaun 

Can u explain me much more clearly the statement " if the window has any

history in the session" 

krishna 

 -----Original Message----- 

From:   Shaun Steckley [ mailto:SSTECKLEY@P...

<mailto:SSTECKLEY@P...> ] 

Sent:   Saturday, February 24, 2001 12:54 AM 

To:     ASP Web HowTo 

Subject:        [asp_web_howto] Re: ASP to close IE browser window 



And to add a piece, if the window has any history in the session... 



-----Original Message----- 

From: Alex Shiell, ITS, EC, SE [ mailto:alex.shiell@s...

<mailto:alex.shiell@s...> ] 

Sent: Friday, February 23, 2001 11:34 AM 

To: ASP Web HowTo 

Subject: [asp_web_howto] Re: ASP to close IE browser window 





you will only get this prompt if it is the main window you are trying to 

close.  if it is a child window (e.g. one opened with window.open()) you 

will not get this prompt. 



-----Original Message----- 

From: TomMallard [ mailto:mallard@s... <mailto:mallard@s...> ] 

Sent: Friday, February 23, 2001 4:00 PM 

To: ASP Web HowTo 

Subject: [asp_web_howto] Re: ASP to close IE browser window 





Quick answer, no, violates the client's security. 



tom mallard 

seattle 

----- Original Message ----- 

From: "Jimm Panik" <Jimm_Panik@g...> 

To: "ASP Web HowTo" <asp_web_howto@p...> 

Sent: Friday, February 23, 2001 2:38 PM 

Subject: [asp_web_howto] Re: ASP to close IE browser window 





> This makes a dialog screen appear asking if the window can be closed. Can 

> we close the browser without asking? 

> 

> > You need to do this client-side, eg using javascript: 

> > 

> > self.close() 

> > 

> > Cheers 

> > Ken 

> > 

> > ----- Original Message ----- 

> > From: "Jimm Panik" <jimm_panik@g...> 

> > To: "ASP Web HowTo" <asp_web_howto@p...> 

> > Sent: Friday, February 23, 2001 7:12 AM 

> > Subject: [asp_web_howto] ASP to close IE browser window 

> > 

> > 

> > > Sounds simple but how do I make the browser window close after my code



> > > executes? I have a page that performs some actions and when it is 

> > finished, 

> > > I would like for the window to close. Any help? 

> > > 

> > > Jimm Panik 

> > 

> 

--- 






$subst('Email.Unsub')









********************************************************************

The information contained in this email is confidential and

is intended solely for the use of the person identified and

intended as the recipient. If you are not the intended 

recipient, any disclosure, copying, distribution, or taking of

any action in reliance on the contents is prohibited. If you

receive this message in error, contact the sender

immediately and delete it from your computer.



Personal e-mails are restricted by PSECU policy. As such,

PSECU specifically disclaims any responsibility or liability

for any personal information or opinions of the author

expressed in this email.

********************************************************************





  Return to Index