[thelist] Javascript Code broke?

Rob Smith rob.smith at THERMON.com
Thu May 20 09:13:07 CDT 2004


Hi.

For the life of me I cannot figure out why this broke. (see arrow)

function validate() {
  if (AddProject.ProjectName.value == "") {
    alert("You must enter a Project Name.");
    return false;
  } 
  else 
  {
    document.AddProject.submit();  <------------------
    return true;
  }
}

The form is:

<form action="actions/add.asp" name="AddProject" method="get" >
...
<input type="button" value="Save" onclick="validate()">
</form>

The error message is something to the tune of:

Invalid Character code 3~~0

Have you seen this or know why this is breaking? I tried to enter special
characters and such. I could not replicate the error.

Rob Smith


More information about the thelist mailing list