Results 1 to 6 of 6

Thread: send stuff after 10 sec

  1. #1
    DaoK
    Guest

    send stuff after 10 sec

    I want to have something who will send the answer between 2 radio box, but the user have only 10 seconds, if he choose nothing he send the current checked radio box.

    Here is what I have but it doesnt work:

    Code:
    <META HTTP-EQUIV="Refresh" Content="10  
    <FORM action=vote_web.asp method=post>
    URL=sondage_web.htm">
          <INPUT type="radio" checked disabled readonly value="a" name="u_input">Oui<BR>
          <INPUT type=radio value=b name=u_input>Non<BR>
    <INPUT id="menu2" type="submit" value="Votez!">
    
    </FORM>

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Use the JavaScript SetTimeout() function.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Member
    Join Date
    Apr 2002
    Posts
    52
    don't know about the fn Hobo mentioned. anyways, my take on this would be:
    1. Use a timer function in Javascript.
    2. Make this function call form.submit after 10 seconds.

  4. #4
    DaoK
    Guest
    I do not know javascript that can help me just a code that I will copy and modify. Please

  5. #5
    Member
    Join Date
    Apr 2002
    Posts
    52
    then u'll have to wait...and a long wait it will be if u wait for me because i am leaving for a weeklong vacationnnnnnnnnn 'urrayyyyyyyyyy!!!

    btw, checkout planetsourcecode.com, and the netscape site for JS reference and try to do it yourself..

    bye!

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Search this site for information on the SetTimout function in JavaScript. It waits a certain number of milliseconds before executing a function.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width