Closing window from inside a frame?

2002-10-28 Thread Greg Luce
I have a form inside a frameset and after posting the form and processing
the data I need to close the window and post back to the opener.
I've used this in an action template before after processing a form
submission and it works nicely. But I'm trying to do a similar thing inside
a frameset and it doesn't want to close the window. :-(  Any ideas?
 cfoutput
 html
 script language=JavaScript
  function closeit() {
  window.opener.location=index.cfm?fuseaction=members.main;
  window.close();
  }
 /script
 /cfoutput
 body onload=closeit()/body
 /html

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
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.



Re: Closing window from inside a frame?

2002-10-28 Thread Critter
oi Greg!!

top.window.close() ?

top.window.opener... ?


-- 
Critz
 Macromedia Certified Advanced ColdFusion Developer
 CFX_BotMaster Network=Efnet
   Channel=ColdFusion Blog=http://blog.ctzc.com;





Monday, October 28, 2002, 1:39:53 PM, you wrote:

GL I have a form inside a frameset and after posting the form and processing
GL the data I need to close the window and post back to the opener.
GL I've used this in an action template before after processing a form
GL submission and it works nicely. But I'm trying to do a similar thing inside
GL a frameset and it doesn't want to close the window. :-(  Any ideas?
GL  cfoutput
GL  html
GL  script language=JavaScript
GL   function closeit() {
GL   window.opener.location=index.cfm?fuseaction=members.main;
GL   window.close();
GL   }
GL  /script
GL  /cfoutput
GL  body onload=closeit()/body
GL  /html

GL 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: Closing window from inside a frame?

2002-10-28 Thread Pete Ruckelshaus
Or, just target=_top in your form tag should work...

Pete

- Original Message -
From: Critter [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, October 28, 2002 1:49 PM
Subject: Re: Closing window from inside a frame?


 oi Greg!!

 top.window.close() ?

 top.window.opener... ?


 --
 Critz
  Macromedia Certified Advanced ColdFusion Developer
  CFX_BotMaster Network=Efnet
Channel=ColdFusion Blog=http://blog.ctzc.com;




 
 Monday, October 28, 2002, 1:39:53 PM, you wrote:

 GL I have a form inside a frameset and after posting the form and
processing
 GL the data I need to close the window and post back to the opener.
 GL I've used this in an action template before after processing a form
 GL submission and it works nicely. But I'm trying to do a similar thing
inside
 GL a frameset and it doesn't want to close the window. :-(  Any ideas?
 GL  cfoutput
 GL  html
 GL  script language=JavaScript
 GL   function closeit() {
 GL   window.opener.location=index.cfm?fuseaction=members.main;
 GL   window.close();
 GL   }
 GL  /script
 GL  /cfoutput
 GL  body onload=closeit()/body
 GL  /html

 GL
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Re: Closing window

2002-03-27 Thread phumes1

How can I close a window using javascript without having to click on a link 
or button?

After my CF code runs I want the window to close.





+---+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
++


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Closing window

2002-03-27 Thread Tony_Petruzzi

window.close();

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 1:17 PM
To: CF-Talk
Subject: Re: Closing window


How can I close a window using javascript without having to click on a link 
or button?

After my CF code runs I want the window to close.





+---
+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+---
-+



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Closing window

2002-03-27 Thread Neil Clark =TMM=

Within a onRequestEnd.cfm file

Place 

script
   window.close();
/script



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Closing window

2002-03-27 Thread Matthew R. Small

You can do this only if the window is a child of another window.  If it
is not, then a dialog box will pop up asking the user if he/she wants to
close the window.

- Matt Small




-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 27, 2002 1:17 PM
To: CF-Talk
Subject: Re: Closing window

How can I close a window using javascript without having to click on a
link 
or button?

After my CF code runs I want the window to close.





+---
+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+---
-+



__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Closing window

2002-03-27 Thread VAN VLIET, SCOTT E (SBCSI)

If there is nothing to display on the page:

script
window.close();
/script

Not that this is buggy in NN, so I would recommend:

..
Your CF Code goes here
..

html
head
script type=JavaScript
!--
function closeMe()
{
window.close();
}
//--
/script
/head
body onload=closeMe();
/body
/html

HTH.

-- 
SCOTT VAN VLIET 
SENIOR ANALYST 
SBC SERVICES, INC 
Tel: 858.886.3878 
Fax: 858.653.6763 
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 




-Original Message-
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 10:17 AM
To: CF-Talk
Subject: Re: Closing window


How can I close a window using javascript without having to click on a link 
or button?

After my CF code runs I want the window to close.





+---
+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+---
-+



__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re[2]: Closing window

2002-03-27 Thread Critz

oi phumes1!!

at the end of your page after your cf processing just put

script
self.close()
/script



-- 
Critz
Certified Adv. ColdFusion Developer

Crit[s2k] - CF_ChannelOP Network=Efnet Channel=ColdFusion


-
Wednesday, March 27, 2002, 1:17:04 PM, you wrote:

p How can I close a window using javascript without having to click on a link 
p or button?

p After my CF code runs I want the window to close.





p 
+---+ 

p Philip Humeniuk
p [EMAIL PROTECTED]
p [EMAIL PROTECTED]
p 
++


p 
__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Closing window

2002-03-27 Thread Rick Walters

Without using Javascript or another client side language?  You can't. 
You could manually close the window or have a client event trigger some
other process.



Good Fortune,
Richard Walters,
Webmaster, Davita Laboratory Services
[EMAIL PROTECTED]
(800) 604-5227 x 3525

 [EMAIL PROTECTED] 03/27/02 01:17PM 
How can I close a window using javascript without having to click on a
link 
or button?

After my CF code runs I want the window to close.





+---+


Philip Humeniuk
[EMAIL PROTECTED] 
[EMAIL PROTECTED] 
++



__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Closing window

2002-03-27 Thread Rick Walters

Disregard this.. I read your question incorrectly.

Good Fortune,
Richard Walters,
Webmaster, Davita Laboratory Services
[EMAIL PROTECTED]
(800) 604-5227 x 3525

 [EMAIL PROTECTED] 03/27/02 01:19PM 
Without using Javascript or another client side language?  You can't. 
You could manually close the window or have a client event trigger
some
other process.



Good Fortune,
Richard Walters,
Webmaster, Davita Laboratory Services
[EMAIL PROTECTED] 
(800) 604-5227 x 3525

 [EMAIL PROTECTED] 03/27/02 01:17PM 
How can I close a window using javascript without having to click on a
link 
or button?

After my CF code runs I want the window to close.





+---+


Philip Humeniuk
[EMAIL PROTECTED] 
[EMAIL PROTECTED] 
++




__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Closing window

2002-03-27 Thread phumes1

Thats cool but whats the advantage of putting this code in the 
onrequestend.cfm instead on my file.cfm?

If I have other templates in the same directory that I don't want closed I 
should put the window.close only in the files that I want, right?

At 06:14 PM 3/27/2002 +, you wrote:
Within a onRequestEnd.cfm file

Place

script
window.close();
/script




__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re[2]: Closing window

2002-03-27 Thread Critz

oi Neil!!

wouldn't that execute that bit of code on EVERY page in the app then?


-- 
Critz
Certified Adv. ColdFusion Developer

Crit[s2k] - CF_ChannelOP Network=Efnet Channel=ColdFusion


-
Wednesday, March 27, 2002, 1:14:49 PM, you wrote:

NCT Within a onRequestEnd.cfm file

NCT Place 

NCT script
NCTwindow.close();
NCT /script



NCT 
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Closing window

2002-03-27 Thread Neil Clark =TMM=

Well, if you want it to be actioned DEFINITELY at the end of the server
call, use OnRequestEnd.cfm.  Your page will effectively action the close
window before the server call has ended.

N

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Closing window

2002-03-27 Thread Neil Clark =TMM=

Good point! :-) sorry, I think it works directory by directory...

I have had a bad day, and to top it all off my 2nd monitor just blew up!

Uurgh

Neil

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists