Neil;
This might help, it might not. I don't have code handy for forms, but
here's how you do it with links. Perhaps you can adapt this to work with
forms and if you get it, post back to the list.
1. Spawn the new window with a link like this:
<A HREF="Javascript:open_window('window.cfm');">Open window</A>
2. In window.cfm, use the following JS code in the HEAD block:
<SCRIPT LANGUAGE="javascript">
function windowManager(url) {
window.parent.opener.location = url;
window.parent.close();
}
</SCRIPT>
3. Also in the spawned window.cfm, put this code which will load
the value of the HREF in the original window and close the spawned
window:
<A HREF="javascript:windowManager('newfile.cfm')">New page in original
window, close this one.</A>
-----Original Message-----
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 10:04 AM
To: CF-Talk
Subject: Re: Target back to parent.
I am not worried about form field access. I am more worried about
posting back to that original page and closing the current window (hence
the
window.close())
Is there a target attribute?
Thanks,
Neil
----- Original Message -----
From: "Steve Oliver" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 12:59 PM
Subject: RE: Target back to parent.
> You can reference the parent window with "opener"
>
> opener.document.formname.fieldname.value="whatever";
> window.close();
>
> _____________________________
> steve oliver
> senior internet developer
> atnet solutions, inc.
> http://www.atnetsolutions.com
>
>
> -----Original Message-----
> From: Neil H. [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 12:47 PM
> To: CF-Talk
> Subject: Target back to parent.
>
>
> If I use JavaScript to spawn a new window how can I have that spawned
> window's form post back to the parent page, and then close the spawned
> window.
>
> Thanks,
>
> Neil
>
>
>
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists