Announcement

Collapse
No announcement yet.

javascript help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • javascript help

    I am trying to merge the following script.... (from this site)

    <SCRIPT language=JavaScript>
    <!--

    //Accept terms & conditions script (by InsightEye www.insighteye.com)
    //Visit JavaScript Kit (http://javascriptkit.com) for this script & more.

    function checkCheckBox(f){
    if (f.agree.checked == false )
    {
    alert('Please check the box to continue.');
    return false;
    }else
    return true;
    }
    //-->
    </SCRIPT>

    <form action="/yourscript.cgi-or-your-page.html" method="GET" onsubmit="return checkCheckBox(this)">

    <!--Enter your form contents here-->

    <b>By submitting, I agree that all info entered was done accurately & truthfully.</b><br />
    I accept: <input type="checkbox" value="0" name="agree">
    <input type="submit" value="Submit form">
    <input type="button" value="Exit" onclick="document.location.href='/index.html';">
    </form>


    with the my reservation form since I have not found a way of doing this with BV. The idea is to verify that the user has checked the checkbox before submitting the form.
    The instructions say to paste the script into the body text where I want the form to appear. The problem is that the script includes a basic form and I am not sure how to cut and paste the BV form into the line of the script indicated for form content.
    I can follow the logic of the script although I have no knowledge of Java. I have attempted to paste part of the script into the body text but can not get it to work.

    Can anybody help me?

    Travlinman

    AguycanBeach.com
    Aguycanbeachhostel
    Comunidad Aguycan Beach

    A great must do for all beginners by Lincslady
Working...
X