In that case you could do this:

<form action="" name="testform">
<input type="text" name="test">
<input type="Image" onclick="testform.reset(); return false"
name="reset">
</form>

And put some CF code in the action page to check if the reset button was
pressed.

If the client allows javascript it will reset, if not it will submit and
you can do the reset server side.

Spike

Stephen Milligan
Team Macromedia - ColdFusion
Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content
Management'
http://spikefu.blogspot.com

> -----Original Message-----
> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]] 
> Sent: 15 October 2002 13:01
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] image as a reset button Without javascript?
> 
> 
> 
> I'd call it Javascript as switching off Javascript prevents 
> it from working ;-)
> 
> Kola
> 
> >> -----Original Message-----
> >> From: Spike [mailto:[EMAIL PROTECTED]]
> >> Sent: 15 October 2002 11:58
> >> To: [EMAIL PROTECTED]
> >> Subject: RE: [ cf-dev ] image as a reset button Without javascript?
> >> 
> >> I think it depends on what you define as Javascript...
> >> 
> >> Is this JavaScript or DHTML?
> >> 
> >> <form action="" name="testform">
> >> <input type="text" name="test" value="blah">
> >> </form>
> >> <img src="reset.gif" onclick="document.testform.reset();">
> >> 
> >> Spike
> >> 
> >> Stephen Milligan
> >> Team Macromedia - ColdFusion
> >> Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content 
> >> Management' http://spikefu.blogspot.com
> >> 
> >> > -----Original Message-----
> >> > From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> >> > Sent: 15 October 2002 12:51
> >> > To: [EMAIL PROTECTED]
> >> > Subject: RE: [ cf-dev ] image as a reset button Without 
> javascript?
> >> >
> >> >
> >> >
> >> > Hi
> >> >
> >> > That gives me a normal grey reset button, did some searching on 
> >> > google and apparently it can't be done without 
> javascript. Thanks 
> >> > anyway
> >> >
> >> >
> >> >
> >> > Kola
> >> >
> >> > >> -----Original Message-----
> >> > >> From: Douglas Humphris [mailto:[EMAIL PROTECTED]]
> >> > >> Sent: 15 October 2002 11:40
> >> > >> To: [EMAIL PROTECTED]
> >> > >> Subject: RE: [ cf-dev ] image as a reset button Without
> javascript?
> >> > >>
> >> > >> try:
> >> > >>
> >> > >> <INPUT TYPE="Reset" SRC="/myImage.gif">
> >> > >>
> >> > >> D
> >> > >>
> >> > >> -----Original Message-----
> >> > >> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> >> > >> Sent: 15 October 2002 11:38
> >> > >> To: [EMAIL PROTECTED]
> >> > >> Subject: [ cf-dev ] image as a reset button Without 
> javascript?
> >> > >>
> >> > >>
> >> > >>
> >> > >> Hi
> >> > >>
> >> > >> Hopefully an easy one...
> >> > >>
> >> > >> Is it possible to create an image reset button without using
> >> > javascript?
> >> > >>
> >> > >>
> >> > >> Thanks
> >> > >>
> >> > >>
> >> > >>
> >> > >> --
> >> > >> ** Archive:
> >> > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >> > >>
> >> > >> To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> >> > >> For additional commands, e-mail:
> >> > [EMAIL PROTECTED] For
> >> > >> human help, e-mail: [EMAIL PROTECTED]
> >> > >>
> >> > >>
> >> > >>
> >> > >> --
> >> > >> ** Archive:
> >> > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >> > >>
> >> > >> To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> >> > >> For additional commands, e-mail:
> >> > [EMAIL PROTECTED] For
> >> > >> human help, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >> > --
> >> > ** Archive:
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >> >
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: 
> [EMAIL PROTECTED] 
> >> > For human help, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> 
> >> 
> >> 
> >> --
> >> ** Archive:
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >> 
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: 
> [EMAIL PROTECTED] For 
> >> human help, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to