RE: Mildly OT: JS, Form, Passing Vars + Event Bubbling

2002-12-16 Thread S . Isaac Dealey
-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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-16 Thread Cutter (CF_Talk)
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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-16 Thread Cutter (CF_Talk)
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

RE: Mildly OT: JS, Form, Passing Vars

2002-12-16 Thread Russ
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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
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

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
- 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

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
- 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

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Jon Hall
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 =

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Gyrus
- 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 =

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Jon Hall
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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Jon Hall
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

Re: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread S . Isaac Dealey
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

2002-12-15 Thread Russ
: 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

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Russ
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

RE: Mildly OT: JS, Form, Passing Vars

2002-12-15 Thread Jim Davis
-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