Hey guys really basic issue here I'm having trouble with. This is the first time I have coded validations from scratch and can't figure out why they are not working. When I click my submit button it just forward to "your file was not found" page. It is not acknowledging my validators at all. Input on validators in general, and how to improve or fix this would be much appreciated.
<DOCTYPE!>
<html>
<head>
<script src="gen_validatorv4.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<body>
<div id= "videoGameCircuit">
<img src="Images/vg.jpg" width="900" height="400" alt="video game circuit" />
</div>
<div>
<form action="myForm" onsubmit="return validateForm()" method="post">
Name: <input type="text" name="name" value="" size="25" maxlength="50" /><br>
Email: <input type="text" name="email" value="" size="25" maxlength="50" /><br>
<input type="submit" name="submit" value="sign me up!" />
</form>
<script type="text/javascript">
var frmvalidator = new Validator("myForm");
//where myform is the name/id of your form
var ele = myForm; ele.addEventListener("submit", function(e){e.preventDefault();
frmvalidator.EnableOnPageErrorDisplaySingleBox();
frmvalidator.EnableMsgsTogether();
frmvalidator.addValidation("name","req","Please enter your name");
frmvalidator.addValidation("name","maxlen=20", "Max length for name is 20");
frmvalidator.addValidation("name","alpha_s","Name can contain alphabetic chars only");
</script>
</div>
</body>
</head>
</html>