----- Original Message -----
From: "Jon Hall" <[EMAIL PROTECTED]>
> Your making it to complex I think. Just submit the form using
> target="new". Something like this...
>
> <script>
> function setFormParams(elem, type) {
>   if (type == 'preview') {
>      elem.action = 'letterPreview.cfm';
>      elem.target = 'new';
>   else if (type == 'complete') {
>      elem.action = 'completeForm.cfm';
> }
> elem.submit();
> </script>
>
> <form id="letter">
> <input type="submit" id="preview" value="preview"
onclick="setFormParams(this.form, 'preview')">
> <input type="submit" id="complete" value="sumbit"
onclick="setFormParams(this.form, 'complete')">
> </form>
----------------------------

I'm curious (and too immersed in something else to set up a test ;-)... What
happens to the opener, the parent window contents, when you submit to the
preview pop-up? Does the browser know not to reload anything into here when
it's submitted a form to another window?

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to