Thread: javascript

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    39
    Rep Power
    12

    javascript


    hi, i know javascript can integrate with cf. how to submit a cf form using javascript?
    well, i had a problem here where i need to submit a form after the timer had expired. but it just wont submit.

    its like tis:
    function submitForm(){
    document.clock.submit();
    }

    <body onload="submitForm">
    <form name="clock" action ="exam.cfm" method="post">
    ... cfm coding
    </form>
    please help
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Netherlands
    Posts
    99
    Rep Power
    12
    you are missing round parenthesis...

    <body onload="submitForm() ">

IMN logo majestic logo threadwatch logo seochat tools logo