[Javascript] Re: Javascript digest, Vol 1 #844 - 2 msgs

Swee Li slyong at pannaage.com
Wed Dec 25 23:58:38 CST 2002


can that be done using self.close() ?
----- Original Message -----
From: <javascript-request at LaTech.edu>
To: <javascript at LaTech.edu>
Sent: Wednesday, December 25, 2002 2:01 AM
Subject: Javascript digest, Vol 1 #844 - 2 msgs


> Send Javascript mailing list submissions to
> javascript at LaTech.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.LaTech.edu/mailman/listinfo/javascript
> or, via email, send a message with subject or body 'help' to
> javascript-request at LaTech.edu
>
> You can reach the person managing the list at
> javascript-admin at LaTech.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Javascript digest..."
>
>
> Today's Topics:
>
>    1. Re: Silent window.close... or a better idea (Amol
<amol_n_mali at yahoo.com>)
>    2. Re: Re: Silent window.close... or a better idea (Cutter
(JavaScript))
>
> --__--__--
>
> Message: 1
> Date: Tue, 24 Dec 2002 15:37:16 -0000
> From: "Amol <amol_n_mali at yahoo.com>" <amol_n_mali at yahoo.com>
> To: javascript at LaTech.edu
> Subject: [Javascript] Re: Silent window.close... or a better idea
> Reply-To: javascript at LaTech.edu
>
> Hi there,
>
>     The idea of closing opener window seams to work fine for IE
> (Except for the first window call).  Is there any work around for
> netscape.
>
> THanx.
>
> Amol
> --- In javascript at yahoogroups.com, "Peter Brunone" <peter at b...> wrote:
> > Dan,
> >
> >     That is EXACTLY what I needed... although I just said
> window.opener=top
> > and then closed it.  Thanks a million!  I wonder when MS will patch
> *that*
> > little useful feature...
> >
> > Cheers,
> >
> > Peter
> >
> > ----- Original Message -----
> > From: "Dan Costea" <costea.dan at s...>
> >
> > > I had exactly the same problem few months ago :o)
> > > Because of the security reasons, you cannot close a window without
> > > confirmation, if you didn't open that window with your js. But if
> you
> > really
> > > have no choice, you must lie the IE, by telling it that you
> opened that
> > > window you want to close! Here is the code:
> > >
> > > function cheatCloseWin ()
> > > {
> > >  win = top;
> > >
> > >  // lying:
> > >  win.opener = top;
> > >
> > >  win.close ();
> > > }
> > >
> > > Dan.
> > >
> > > ----- Original Message -----
> > > From: "Peter Brunone" <peter at b...>
> > > >
> > > > I have an intranet application (IE 5.5 only) that needs to be
> in a
> > > > fixed-size window with no menu, status, etc.  I can use a simple
> > > > window.open, but unfortunately the user doesn't want an extra
> window
> > > around.
> > > > I thought that if a page is the first one in the history, you
> could
> > > > window.close() without a confirmation, but that doesn't seem to
> be the
> > > case.
> > > > Can someone suggest a way to either silently close the calling
> window
> > > > (which will be a new browser instance just for this app anyway)
> OR alter
> > > the
> > > > existing window in the same way?  Since this is restricted to
> high-level
> > > MS
> > > > browsers, there has to be a usable option.
> > > >
> > > > Cheers,
> > > >
> > > > Peter
> >
> >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at L...
> > https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> --__--__--
>
> Message: 2
> Date: Tue, 24 Dec 2002 11:42:03 -0500
> From: "Cutter (JavaScript)" <javascript at theblades-family.com>
> To: javascript at LaTech.edu
> Subject: Re: [Javascript] Re: Silent window.close... or a better idea
> Reply-To: javascript at LaTech.edu
>
> Amol,
>
> Unfortunately browser security settings restrict you from doing this.
> I've heard that you may be able to do this with NN using a signed
script...
>
> Cutter
>
> Amol wrote:
>
> >Hi there,
> >
> >    The idea of closing opener window seams to work fine for IE
> >(Except for the first window call).  Is there any work around for
> >netscape.
> >
> >THanx.
> >
> >Amol
> >--- In javascript at yahoogroups.com, "Peter Brunone" <peter at b...> wrote:
> >
> >
> >>Dan,
> >>
> >>    That is EXACTLY what I needed... although I just said
> >>
> >>
> >window.opener=top
> >
> >
> >>and then closed it.  Thanks a million!  I wonder when MS will patch
> >>
> >>
> >*that*
> >
> >
> >>little useful feature...
> >>
> >>Cheers,
> >>
> >>Peter
> >>
> >>----- Original Message -----
> >>From: "Dan Costea" <costea.dan at s...>
> >>
> >>
> >>
> >>>I had exactly the same problem few months ago :o)
> >>>Because of the security reasons, you cannot close a window without
> >>>confirmation, if you didn't open that window with your js. But if
> >>>
> >>>
> >you
> >
> >
> >>really
> >>
> >>
> >>>have no choice, you must lie the IE, by telling it that you
> >>>
> >>>
> >opened that
> >
> >
> >>>window you want to close! Here is the code:
> >>>
> >>>function cheatCloseWin ()
> >>>{
> >>> win = top;
> >>>
> >>> // lying:
> >>> win.opener = top;
> >>>
> >>> win.close ();
> >>>}
> >>>
> >>>Dan.
> >>>
> >>>----- Original Message -----
> >>>From: "Peter Brunone" <peter at b...>
> >>>
> >>>
> >>>>I have an intranet application (IE 5.5 only) that needs to be
> >>>>
> >>>>
> >in a
> >
> >
> >>>>fixed-size window with no menu, status, etc.  I can use a simple
> >>>>window.open, but unfortunately the user doesn't want an extra
> >>>>
> >>>>
> >window
> >
> >
> >>>around.
> >>>
> >>>
> >>>>I thought that if a page is the first one in the history, you
> >>>>
> >>>>
> >could
> >
> >
> >>>>window.close() without a confirmation, but that doesn't seem to
> >>>>
> >>>>
> >be the
> >
> >
> >>>case.
> >>>
> >>>
> >>>>Can someone suggest a way to either silently close the calling
> >>>>
> >>>>
> >window
> >
> >
> >>>>(which will be a new browser instance just for this app anyway)
> >>>>
> >>>>
> >OR alter
> >
> >
> >>>the
> >>>
> >>>
> >>>>existing window in the same way?  Since this is restricted to
> >>>>
> >>>>
> >high-level
> >
> >
> >>>MS
> >>>
> >>>
> >>>>browsers, there has to be a usable option.
> >>>>
> >>>>Cheers,
> >>>>
> >>>>Peter
> >>>>
> >>>>
> >>
> >>_______________________________________________
> >>Javascript mailing list
> >>Javascript at L...
> >>https://lists.LaTech.edu/mailman/listinfo/javascript
> >>
> >>
> >
> >_______________________________________________
> >Javascript mailing list
> >Javascript at LaTech.edu
> >https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> >
>
>
>
>
>
> --__--__--
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> End of Javascript Digest
>




More information about the Javascript mailing list