fareedreg Posted January 24, 2011 Share Posted January 24, 2011 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> Link to comment https://forums.phpfreaks.com/topic/225469-java-script-working-in-ie-but-not-in-firefox/ Share on other sites More sharing options...
haku Posted January 24, 2011 Share Posted January 24, 2011 Must be something in one of those scripts. Link to comment https://forums.phpfreaks.com/topic/225469-java-script-working-in-ie-but-not-in-firefox/#findComment-1164282 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.