|
Hi Barry.b,
Thank you very much for the JS code. It works!
Cheers,
George
>>> [EMAIL PROTECTED] 20/04/04 17:35:33 >>> funny you should ask this George, I was just around that area of a page..
---this is just the reason why the close/refresh should happen (after form processing) <cfoutput> <script language="_javascript_"> if("#VARIABLES.mode#" == "Delete"){ location.href = ''; }else{ changeParent('#reloadFile#'); } </script> </cfoutput> but this is the JS code that does all the hard work //function to reload the parent window and close the existing function changeParent(url){ if(window.opener.name == "detail_window"){ window.opener.parent.document.location.href = ""> }else{ window.opener.document.location.href = "" } window.close(); } also check this nifty idea out http://authors.aspalliance.com/peterbrunone/impossible.asp You Can't Do That On The Web - The Uncanny Disappearing Window cheers barry.b ________________________________________ From: George Lu [mailto:[EMAIL PROTECTED] Sent: Tuesday, 20 April 2004 4:55 PM To: CFAussie Mailing List Subject: [cfaussie] Re: [OT] Close popup window when click a link or button Thanks Mark. Sorry, my original question wasn't clear enough. Since I need to process the form data on the same page (child window) after submit and then auto close current window and refresh data on the main window. George >>> [EMAIL PROTECTED] 20/04/04 16:28:15 >>> George - window.close(); http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/close_0.asp Mark ------------------------------------------------------------------ [EMAIL PROTECTED] ICQ: 3094740 Safe From Bees [ www.safefrombees.com ] Quoting George Lu <[EMAIL PROTECTED]>: > Hi, > > I'd like to automatically close the popup child window when I click a > link or button which will load a page from the main window. Can I do > this in _javascript_ or CF? > > Thanks, > George > > George Lu > Web Developer/Engineer > Information Services > Adult Multicultural Education Services > 4/255 William Street > Melbourne, Vic 3000 > ------------------------------------------ > Direct: 03 9926 4706 > Fax: 03 9926 4695 > Email: [EMAIL PROTECTED] > Web: www.ames.net.au > ------------------------------------------ > > > > AMES (Adult Multicultural Education Services) > www.ames.net.au > > > Disclaimer > ********************************************************************** > This email and any attachments may be confidential. > If received in error, please contact us and delete all copies. > Before opening or using attachments you should check them for viruses > or defects. > Regardless of any loss, damage or consequence, whether caused by the > negligence of the sender or not, resulting directly or indirectly from > the use of any attached files our liability is limited to resupplying > any affected attachments. > Any representations or opinions expressed are those of the individual > sender, and not necessarily those of Adult Multicultural Education > Services (AMES). > > ********************************************************************** > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > > > > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia > http://www.mxdu.com/ + 24-25 February, 2004 > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 AMES (Adult Multicultural Education Services) www.ames.net.au Disclaimer ********************************************************************** This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments you should check them for viruses or defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of Adult Multicultural Education Services (AMES). ********************************************************************** --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 |
