Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Location
    USA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    input type=image [!submit the form, NN4]

    Hi:

    I've read through some previous posts, but couldn't find a solution to using a "reset" button with type=image that will work in NN4 without submitting the form. I've already tried return false, reset(), and some others, which do work in IE, but I haven't been able to come up with a custom function that will prevent NN4 from submitting the form.

    Does anyone know of a workaround for this?


    Thanks for any assistance.


    James
    He is risen!!!

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A type of image is for submitting forms only. You should not use it for anything else. You could use a normal link and img tag to do the reset like this:
    <A HREF="javascript:document.form_name.reset()"><IMG SRC="sub.gif" NAME="subimg" BORDER="0"></A>

    or

    <A HREF="javascript:void" onClick="document.form_name.reset()"><IMG SRC="sub.gif" NAME="subimg" BORDER="0"></A>

  • #3
    New to the CF scene
    Join Date
    Aug 2002
    Location
    USA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, Jyoung. Here is what I used:


    <a href="javascript:void(0);" onClick="document.myForm.reset();return false;"><img src="clearForm.gif" border="0"></a>

    Works a treat. Thanks, again. I appreciate it.


    James
    He is risen!!!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •