For creating the pop-up, instead of a form submit I would just use a 
link calling a js function to create the pop-up, passing your vars in 
the url. In the window.open statement only specify the width and height 
attributes (your called page can be CF).

Cutter

Russ wrote:

>I am attempting to take values from a form that I have (it's a form that
>chooses recipient, sender, letter to be sent, custom header, custom
>footer and whether or not a password is sent to the user, for what it's
>worth) and then pass them to a pop-up window for display/preview prior
>to submitting and having all values combined into the email and sent,
>and then added to the database.
>
>I've found a couple of Javascript methods for handling this, but I'd
>prefer to keep the pop-up page reading the CF values--which it's not;
>it's saying that my FORM.values are undefined.
>
>Ideally, I'd simply like to pass all my values to the popup, display
>them, have a window.close and then allow the user to submit the letter,
>if they so choose, but right now, I'm not correctly passing anything.
>
>Here's what I'm working with (and it's probably butchered after a few
>tries here, so please bear with me):
>
>(button):  <input name="Submit2" type="Button" class="ButtonInv"
>onClick="newWin()" value="Preview Letter">
>
><SCRIPT language="javascript" type="text/javascript">
><!--
>
><!--- Form name = Letter; trying to see if I can manipulate the code
>below to work for me; failing horribly --->
><!--- document.Letter.action="letterPreview"; --->
><!--- document.Letter.submit() --->
>
>function newWin(){
>var confirmWin =
>window.open('letterPreview.cfm','','width=800,height=600,scrollbars=yes,
>left=380,top=0')
>
>
>       if(confirmWin.opener==null){
>               confirmWin.opener = self;
>       }
>}
>
>//-->
></SCRIPT>
>
>And now, my head's starting to spin and I'm getting a little lost.  
>
>Any assistance?
>
>Thanks very much!
>
>Russ
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
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

Reply via email to