[thelist] Javascript Code broke?

clayton clayton at geni-us.com
Thu May 20 11:00:32 CDT 2004


> if (*document.*AddProject.ProjectName.value == "") {
that should fix it.

-c


Rob Smith wrote:

>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