Destroying Current Browser Window

This is a discussion on Destroying Current Browser Window within the Inetserver forums in Microsoft Tools category; I would like to know how can I destroy the current browser window. I know I can do it using JavaScript (i.e. window.close()). But that method requires a trigger such as a click or loading of the body occurring. I would like the window browser to close down as soon as the asp script has terminated. Basically my application behaves like this: 1) Main browser window (A) has a link 2) Clicking of link opens another browser window (B) 3) A form resides on browser window (B) that sends information to a database via asp. I would like browser window ...

Go Back   Application Development Forum > Microsoft Tools > Inetserver

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-10-2003, 03:29 PM
Terry Murray
Guest
 
Default Destroying Current Browser Window

I would like to know how can I destroy the current browser window. I know I
can do it using JavaScript (i.e. window.close()). But that method requires a
trigger such as a click or loading of the body occurring. I would like the
window browser to close down as soon as the asp script has terminated.

Basically my application behaves like this:

1) Main browser window (A) has a link
2) Clicking of link opens another browser window (B)
3) A form resides on browser window (B) that sends information to a database
via asp.

I would like browser window (B) to be destroyed as soon as the information
has been sent to the database

Thanks in advance

Terry


Reply With Quote
  #2  
Old 09-10-2003, 10:45 PM
McKirahan
Guest
 
Default Re: Destroying Current Browser Window

"Terry Murray" <tgmurray@rogers.com> wrote in message
news:uYK7b.48751$mk1.14876@news02.bloor.is.net.cab le.rogers.com...
> I would like to know how can I destroy the current browser window. I know

I
> can do it using JavaScript (i.e. window.close()). But that method requires

a
> trigger such as a click or loading of the body occurring. I would like

the
> window browser to close down as soon as the asp script has terminated.
>
> Basically my application behaves like this:
>
> 1) Main browser window (A) has a link
> 2) Clicking of link opens another browser window (B)
> 3) A form resides on browser window (B) that sends information to a

database
> via asp.
>
> I would like browser window (B) to be destroyed as soon as the information
> has been sent to the database
>
> Thanks in advance
>
> Terry



Are you familiar with Response.Redirect?

Or, perhaps, Server.Execute or Server.Transfer?

Might one of these apply?


Reply With Quote
  #3  
Old 09-11-2003, 12:32 PM
Terry Murray
Guest
 
Default Re: Destroying Current Browser Window


"McKirahan" <News@McKirahan.com> wrote in message
news:klR7b.313083$Oz4.103417@rwcrnsc54...
> "Terry Murray" <tgmurray@rogers.com> wrote in message
> news:uYK7b.48751$mk1.14876@news02.bloor.is.net.cab le.rogers.com...
> > I would like to know how can I destroy the current browser window. I

know
> I
> > can do it using JavaScript (i.e. window.close()). But that method

requires
> a
> > trigger such as a click or loading of the body occurring. I would like

> the
> > window browser to close down as soon as the asp script has terminated.
> >
> > Basically my application behaves like this:
> >
> > 1) Main browser window (A) has a link
> > 2) Clicking of link opens another browser window (B)
> > 3) A form resides on browser window (B) that sends information to a

> database
> > via asp.
> >
> > I would like browser window (B) to be destroyed as soon as the

information
> > has been sent to the database
> >
> > Thanks in advance
> >
> > Terry

>
>
> Are you familiar with Response.Redirect?
>
> Or, perhaps, Server.Execute or Server.Transfer?
>
> Might one of these apply?
>
>



Reply With Quote
  #4  
Old 09-11-2003, 12:35 PM
Terry Murray
Guest
 
Default Re: Destroying Current Browser Window

I could be wrong but I think that all of those possible solutions cause
whatever will be displayed to occur in the same browser window that
initiated its call. That is, only the content would possibly change, the
browser window would still be open.


"McKirahan" <News@McKirahan.com> wrote in message
news:klR7b.313083$Oz4.103417@rwcrnsc54...
> "Terry Murray" <tgmurray@rogers.com> wrote in message
> news:uYK7b.48751$mk1.14876@news02.bloor.is.net.cab le.rogers.com...
> > I would like to know how can I destroy the current browser window. I

know
> I
> > can do it using JavaScript (i.e. window.close()). But that method

requires
> a
> > trigger such as a click or loading of the body occurring. I would like

> the
> > window browser to close down as soon as the asp script has terminated.
> >
> > Basically my application behaves like this:
> >
> > 1) Main browser window (A) has a link
> > 2) Clicking of link opens another browser window (B)
> > 3) A form resides on browser window (B) that sends information to a

> database
> > via asp.
> >
> > I would like browser window (B) to be destroyed as soon as the

information
> > has been sent to the database
> >
> > Thanks in advance
> >
> > Terry

>
>
> Are you familiar with Response.Redirect?
>
> Or, perhaps, Server.Execute or Server.Transfer?
>
> Might one of these apply?
>
>



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:14 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.