Help me with java counter code please

Discussion in 'JavaScript' started by crazy.works, Sep 22, 2008.

  1. #1
    Hello , iam a new in the Java programming , so just i want a simple code please
    well maybe it will be simple for the java professional, but ofcourse it is so difficult for me
    so about the code, it is a counter code which i can put it on a php file ,it will count-down
    lets say from 25 to 0 , when the counter become 0 , i need it to send the form from the 1st
    php file to the second php file

    mybe anybody help me with this counter code please ???
     
    crazy.works, Sep 22, 2008 IP
  2. Sleeping Troll

    Sleeping Troll Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why do you need java, php can handle that easily!
     
    Sleeping Troll, Sep 22, 2008 IP
  3. crazy.works

    crazy.works Peon

    Messages:
    304
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    oh my god, can we make counter with the php ?? !!!!!
     
    crazy.works, Sep 22, 2008 IP
  4. RoyalFlushed

    RoyalFlushed Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can do this easily with javascript, and you don't even have to use a counter, just put this in the body tag of you HTML :

    <body onload="setTimeout('formName.submit()',25000)">

    After the page is loaded, the form will be posted in exactly 25 seconds. Offcourse you have to replace [formName] with the correct name of the form.

    I hope this is helps you out!

    Greets,

    Royal
     
    RoyalFlushed, Sep 29, 2008 IP