Results 1 to 3 of 3

Thread: Assistance required please.

  1. #1
    Join Date
    Jan 2007
    Location
    East Anglia
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Assistance required please.

    Hello and thank you in advance if you are able to help me.

    I am looking for a javascript that does the following:

    User fills out form, they press submit, the submit button words change to 'please wait' and disables, after a delay forward to a page,

    I hope this makes sense.................... this is urgent.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    ...why?

    What possible reason is there to add a delay to submitting a form?

    Anyway, I expect you could do this fairly easily with a timer and the onSubmit attribute.

    Perhaps on the submit button, use:
    onClick="this.value='pleasewait';"

    And for the onSubmit just do a timer for 5 seconds or whatever.

    Plus the disable submit code... not sure what that is, but there are plenty of scripts to use as an example around.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    HTML Code:
    <form .............. onSumit="this.elements['Submit'].value='Please wait...';this.elements['Submit'].disabled = true">
    Untested.

    Basically, add
    Code:
    onSumit="this.elements['Submit'].value='Please wait...';this.elements['Submit'].disabled = true"
    to your form tag.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

Bookmarks

Posting Permissions

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