Jump to content

Recommended Posts

Dear All

 

I have a sample code in which validation is done by java script.. All working fine in IE but not working in firefox. Please suggest. code below

 

 

<html">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<script language="javascript" src="js/gen_validatorv31.js" type="text/livescript"></script>

</head>

<body>

<form id="form1" name="newclient" method="post" action="save.php">

  <label></label><p>

    <label>Name

    <input name="txtname" type="text" id="txtname" size="50" maxlength="250" />

    </label>

</p>

<p>

    <label>

    <input type="submit" name="cmdsubmit" id="cmdsubmit" value="Submit" />

    </label>

</p>

</form>

 

<label></label><p> </p>

 

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

                                                                                             

var frmvalidator = new Validator("newclient");

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

frmvalidator.addValidation("txtname","maxlen=249","Max length for Name is 250 character");

                                                                             

</script>

</body>

</html>

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.