Announcement

Collapse
No announcement yet.

Error Message

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

    Error Message

    Hi,
    Can anyone tell me why Actinic Catalog gives me an error message when I try to paste the below code into my homepage? The code works fine outside of Catalog, but there seems to be something about it that doesn't agree with Actinic.
    Many thanks,
    Tim
    www.chunkichilli.com


    This is needed to put inside <head> . </head>



    <script language="JavaScript" src="gen_validatorv2.js"
    type="text/javascript"></script>





    And this is the form in the body.



    <table width="100%" border="0" cellspacing="10" cellpadding="0">

    <tr>

    <td width="23%" nowrap><form name="formEmail" method="post"
    action="register.php">

    <table width="100%" border="0" cellspacing="0" cellpadding="2">

    <tr>

    <td><input name="Name" type="text" id="Name" value="name"
    size="8" onFocus="if (this.value == 'name') {this.value =''; }"></td>

    <td rowspan="2"><input type="submit" value="Submit"></td>

    </tr>

    <tr>

    <td><input name="Email" type="text" id="Email" value="email"
    size="8" onFocus="if (this.value == 'email') {this.value =''; }"></td>

    </tr>

    </table>

    </form>

    <script language="JavaScript" type="text/javascript">

    //You should create the validator only after the definition of the HTML form

    var frmvalidator = new Validator("formEmail");

    frmvalidator.addValidation("Name","req", "Please enter your name");

    frmvalidator.addValidation("Email","req", "Please enter your email
    address");

    frmvalidator.addValidation("Email","email", "Please enter your email
    address in a valid email format");

    </script></td>

    <td width="87%">Would you like to receive occasional updates of our
    latest products and promotions? <strong>Enter your email address</strong> in
    the box on the left. </td>

    </tr>

    </table>

    #2
    have you placed the script inside some form tags?

    Please also post the actinic code so we can see where you've added the code

    Comment

    Working...
    X