Cool solution for an intranet! Thanks for the tip. Dave
----- Original Message ----- From: "Joshua Miller" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, March 11, 2003 10:35 AM Subject: RE: Javascript Signed Scripting Re: window.close question? > I'll re-post this because it was about 4am when I posted and you may > have missed this. You CAN do this without a signed script: > > Just change the window opener's reference to TOP and then you can close > it. > > <script> window.open('popup.html','popWin','width=300,height=300'); > window.opener=top; > window.close(); > </script> > > This doesn't work on IE5 or Netscape 4.7x but it works on all other > IE/NS variations. > > I saw this link yesterday while looking for some ActionScript reference. > > http://aspalliance.com/peterbrunone/impossible.asp > > HTH > > Joshua Miller > Head Programmer / IT Manager > Garrison Enterprises Inc. > www.garrisonenterprises.net > [EMAIL PROTECTED] > (704) 569-9044 ext. 254 > > ************************************************************************ > ************* > Any views expressed in this message are those of the individual sender, > except where the sender states them to be the views of > Garrison Enterprises Inc. > > This e-mail is intended only for the individual or entity to which it is > addressed and contains information that is private and confidential. If > you are not the intended recipient you are hereby notified that any > dissemination, distribution or copying is strictly prohibited. If you > have received this e-mail in error please delete it immediately and > advise us by return e-mail to [EMAIL PROTECTED] > ************************************************************************ > ************* > > > -----Original Message----- > From: James Blaha [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2003 8:41 AM > To: CF-Talk > Subject: Re: Javascript Signed Scripting Re: window.close question? > > > Jann, > > Thanks a million for the information. I'll look through it all soon. > > Regards, > James Blaha > > Jann VanOver wrote: > > >Mozilla has a write up on signed javascripting: > >http://www.mozilla.org/projects/security/components/signed-scripts.html > > > >There's an old (Netscape 4.0) article here: > >http://polaris.umuc.edu/~mgaylor/SignedScripts.html > > > >And some Netscape/Gekko notes at > >http://devedge.netscape.com/central/security/ AND > >http://devedge.netscape.com/viewsource/2002/bypassing-security-restrict > >ions/ > > > >On 3/9/03 1:48 PM, "James Blaha" <[EMAIL PROTECTED]> wrote: > > > > > > > >>Jeff, Jann & Critz, > >> > >>Thank you all very much for your input and time. Iım working on an > >>intranet application so Iım not worried about security for the userıs > >>browser. Jann do you know how this would be done in a secure, signed, > >>scripting environment? If you do can you please email me an example if > > >>you have one handy otherwise I found a work around for my issue so I > >>can put an end to this thread. > >> > >>Thanks again! > >> > >>Regards, > >>James Blaha > >> > >> > >>Jann VanOver wrote: > >>On 3/7/03 10:30 AM, "James Blaha" <[EMAIL PROTECTED]> > >><mailto:[EMAIL PROTECTED]> > >>wrote: > >> > >> > >>Hello All: > >> > >>JavaScript Question > >> > >>I need to have JavaScript code work for Netscape 4.7 to open a child > >>window and close the parent and bypass the confirm message. [snip] > >> > >> > >>You should not be able to do this unless you are in a secure, signed, > >>scripting environment. Period. > >> > >>What you are asking invades the user's privacy. When you close the > >>parent, you lose all their page history information -- this is why the > > >>confirmation message appears. The confirmation message will always > >>appear if you programmatically try to close a window that the user > >>opened. > >> > >>I am a bit shocked that the code you give doesn't launch a > >>confirmation message in IE and Netscape 6-7. You must have your user > >>privacy settings lower in those browsers. > >> > >> > >> > >> > >> > >>Can someone > >>please send me an example? > >> > >>This code works in IE and Netscape 6-7 but not Netscape 4.7 > >> > >><!--- <SCRIPT LANGUAGE = JavaScript> > >> > >>{ > >> > >>newwin=window.open("Login.cfm","_blank","......." ) firstwindow = > >>window.self; firstwindow.opener = window.self; > >> > >>firstwindow.close(); > >>newwin.focus() > >> > >>} > >></SCRIPT> ---> > >> > >> > >> > >> > >> > >> > >> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4