I have a Cold Fusion reset button that's not working w/ javascript turned off

Quack
Quack used Ask the Experts™
on
I need a reset button to work w/in a Cold Fusion form without javascript as it has be functional without js turned on. Does anyone have any ideas? links to options? examples?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
erikTsomikSystem Architect, CF programmer

Commented:
try something like this

<cfif isDefined("FORM.Reset")>
    <cflocation url="#cgi.script_name#" addtoken="false">
</cfif>

 <input type="button" name="Reset" value="Reset">
Quackdeveloper

Author

Commented:
Thanks...I'll try that...another suggestion that's come to me but I'm positive on how to write the logic is below:

1. create a form for the reset button on the same file...create the logic to check the reset button is being selected.

2. post the form back to the same page and reset the form fields  to ""

Do you have any examples I could lean on for this?
Quackdeveloper

Author

Commented:
<cfif isDefined("FORM.Reset")> ... is the FORM the name of the cfm file?
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

developer
Commented:
that didn't work...it screwed the verify button up...causes it to go to a page not found
erikTsomikSystem Architect, CF programmer

Commented:
try changing the button type to submit

<cfif isDefined("FORM.Reset")>
    <cflocation url="#cgi.script_name#" addtoken="false">
</cfif>

 <input type="submit" name="Reset" value="Reset">
Quackdeveloper

Author

Commented:
no solution solved the issue...still unresolved at this point...deferred until end of July

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial