Jump to content

Java script working in IE but not in Firefox.


fareedreg

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>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.