-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 15, 2002 11:04 PM
To: CF-Talk
Subject: Re: Mildly OT: JS, Form, Passing Vars
Also the onclick event may need to return true for the
form to actually submit. I didn't test this :)
onclick
This business would be so much easier if we didn't have to create
sites/applications to the specifications of clients. Part of our job is
to try to steer clients in the right direction, and make them feel like
the decision they made was their idea in the first place, but sometimes
it just
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
straddling it.
I think I just landed all scissor-style right in the middle, too. heh
-Original Message-
From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 12:05 PM
To: CF-Talk
Subject: Re: Mildly OT: JS, Form, Passing Vars
This business would be so much
Why use a pop-up? When the form's submitted and validated, just output the
preview page, passing all values through with CF.
Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available
- Original Message -
From: Russ [EMAIL PROTECTED]
To: CF-Talk
To: CF-Talk
Subject: Re: Mildly OT: JS, Form, Passing Vars
Why use a pop-up? When the form's submitted and validated,
just output the
preview page, passing all values through with CF.
Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key
- Original Message -
From: Russ [EMAIL PROTECTED]
Because it's a preview for that purpose--to PREview it to ensure that
what's being sent out is correct.
---
Still not clear why this has to be in a pop-up. In some apps I do, I have
previews of content before
Because it's a preview for that purpose--to PREview it to
ensure that
what's being sent out is correct.
---
Still not clear why this has to be in a pop-up.
Really, WHY is irrelevant. It's the fact that it's going to be that way
because it's been found to work
- Original Message -
From: Russ [EMAIL PROTECTED]
Really, WHY is irrelevant. It's the fact that it's going to be that way
because it's been found to work the best for this audience and it's
their request.
---
Why is central. If it's down to the idiosyncratic
Why is central. If it's down to the idiosyncratic
preferences of a client
you can't argue with, or the results of extensive user
testing that you
likewise can't really argue with - well, there's no argument!
There's a reason that I posted my question the way that it was posted.
There
Clients, eh?
As for using the TARGET attribute, I assume you can set this
programmatically with JS, like ACTION, so you could target the form at the
preview popup by default, then set a JS var in the opener from within the
popup if 'Confirm' is pressed, thus alerting the submit script to make the
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 =
- 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 =
To: CF-Talk
Subject: Re: Mildly OT: JS, Form, Passing Vars
- 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
The opener stays should stay as is. There is a problem with my code
though that I didn't see until now. The elem.target should be changed
to '' if elem.type = complete, because if the close the window after
previewing, the target needs to be reset. Also the onclick event may
need to return true
Resend...didn't see it hit the list, sry if it's a repeat
The opener stays should stay as is. There is a problem with my code
though that I didn't see until now. The elem.target should be changed
to '' if elem.type = complete, because if the close the window after
previewing, the target needs to
Also the onclick event may need to return true for the
form to actually submit. I didn't test this :)
onclick=setFormParams(this.form, 'complete');
return true;
My understanding / experience is that an onclick event only prevents a form
from submitting when it's in a submit button with
: Re: Mildly OT: JS, Form, Passing Vars
The opener stays should stay as is. There is a problem with my code
though that I didn't see until now. The elem.target should be changed
to '' if elem.type = complete, because if the close the window after
previewing, the target needs to be reset. Also
Sorry...
Outlook snafu; probably my fault, entirely...
Okay, I've gotten it to work now...
Javascript as follows:
script language=JavaScript type=text/JavaScript
function Preview() {
//'LetterPreview','toolbar=yes,location=yes,status=yes,menubar=yes,scrol
lbars=yes,resizable=yes'
var
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 15, 2002 11:04 PM
To: CF-Talk
Subject: Re: Mildly OT: JS, Form, Passing Vars
Also the onclick event may need to return true for the
form to actually submit. I didn't test
20 matches
Mail list logo