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
    Jun 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Replace form submit button onsubmit

    I am wondering if it is possible for me to replace my form submit button with an animated gif (fake progress bar), after the button has been pressed.

    Having so far disabled the button onclick, I would instead be happy if I could simply change the button text from 'Click here to submit' to 'Processing...'

    I have done some searches here but I'm finding references to innerHTML, etc., and I'm getting lost now.

    Is this an easy thing to do? TIA

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,253
    Thanks
    12
    Thanked 341 Times in 337 Posts
    if you’re using a real submit button, you immediately are sent to the page specified in the form’s action attribute …
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • #3
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks yeah it's a real submit button but it's for uploading files that are around 7mb and obviously it is sat there a while before the form redirects to my thank you page so people are continually clicking the button and closing the form too soon because they don't know what's happening so I would like to remove it or have it change to some other text so that they know the form is processing.
    Last edited by Ted8458; 06-11-2010 at 01:28 PM.


  •  

    Posting Permissions

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