Re: Cancel button with CFINPUT Requires=Yes

2002-05-14 Thread James Sleeman
INPUT TYPE=BUTTON VALUE=Cancel NAME=DaCancelButton OnCLick=document.location = 'http://where.ever.you.so.please/' - Original Message - From: Bruce Holm [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 11:16 AM Subject: Cancel button with CFINPUT Requires=Yes

Re: Cancel button with CFINPUT Requires=Yes

2002-05-14 Thread ksuh
Is there any reason why your cancel button is a submit button? why not use: button onclick=Cancel/button - Original Message - From: Bruce Holm [EMAIL PROTECTED] Date: Tuesday, May 14, 2002 5:16 pm Subject: Cancel button with CFINPUT Requires=Yes I am noticing that if you use CFFORM

RE: Cancel button with CFINPUT Requires=Yes

2002-05-14 Thread Dave Watts
I am noticing that if you use CFFORM and then CFINPUT or CFSELECT and specify a field to be Required that having a Cancel submit button is not possible. It will ask for all required fields before you can click on Cancel. Kind of defeats the point of Cancel. Any work arounds?

RE: Cancel button with CFINPUT Requires=Yes

2002-05-14 Thread Dave Watts
INPUT TYPE=BUTTON VALUE=Cancel NAME=DaCancelButton OnCLick=document.location = 'http://where.ever.you.so.please/' Just a heads-up - I think that in the DOM, location belongs to the window/frame, not to the document. I think that IE may support your syntax, but I suspect it might fail in other

Re: Cancel button with CFINPUT Requires=Yes

2002-05-14 Thread Bruce Holm
I need the Cancel button to take me to another page. The others who responded have hit on the way to do it! Thanks EVERYONE for your help! Bruce - Original Message - From: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 4:49 PM Subject: Re: Cancel button

Re: Cancel button with CFINPUT Requires=Yes

2002-05-14 Thread Bruce Holm
Dave, Thanks for that heads-up! I assume your suggested useage (location.href=...) will work in all browser types that support JS. Bruce - Original Message - From: Dave Watts [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 5:05 PM Subject: RE: Cancel button

RE: Cancel button with CFINPUT Requires=Yes

2002-05-14 Thread Dave Watts
I assume your suggested useage (location.href=...) will work in all browser types that support JS. It should work. The full name is window.location.href, but the window object is global. In fact, since href is the default property of location, you should be able to just use location! Dave