You are correct sir, I changed as you suggested and works great!
Thanks again!
rh
"William Morris" <news.remove.this.and.the.dots@seamlyne.com> wrote in
message news:2gurjsF73knmU1@uni-berlin.de...[color=blue]
> Something else to keep in mind: calling a function from the onclick event[/color]
of[color=blue]
> a submit element can cause unpredictable results - maybe the function gets
> called, maybe it doesn't. I've had IE ignore function calls. Better to
> change the SUBMIT to a BUTTON, and submit the form at the end of your
> function, like you're doing.
>
> "r0adhog" <roadhog@nospam.phreaker.net> wrote in message
> news:OBEzewOPEHA.3884@TK2MSFTNGP12.phx.gbl...[color=green]
> > Thanks for the input!
> >
> > rh
> > "Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
> > news:40ac290d.577947124@msnews.microsoft.com...[color=darkred]
> > > On Tue, 18 May 2004 10:00:44 -0400, "r0adhog"
> > > <roadhog@nospam.phreaker.net> wrote:
> > >
> > > >I have a very simple form:
> > > >
> > > ><html>
> > > ><head>
> > > ></head>
> > > ><body>
> > > ><%
> > > >function ValForm()
> > > > if len(document.form.newapp.all("AccessCode").Value) = 4 then
> > > > document.form.newapp.submit()
> > > > else
> > > > msgbox "Access Code in Improper Format"
> > > > end if
> > > >end function
> > > >%>
> > > ><form action="process.asp" method="Post">
> > > ><form name="newapp">
> > > ><input type="password" autocomplete="off" name="AccessCode"></td>
> > > ><input type="button" value="Submit" Name="Submit"[/color][/color][/color]
onclick="ValForm()">[color=blue][color=green][color=darkred]
> > > ></form>
> > > ></body>
> > > ></html>
> > > >
> > > >As you can see, I am attempting to do some very simple form[/color][/color][/color]
validation.[color=blue][color=green]
> > I[color=darkred]
> > > >am getting
> > > >a script error. Any help or any other suggestions on how to do what[/color][/color][/color]
I[color=blue]
> am[color=green][color=darkred]
> > > >attempting?
> > >
> > > Obligatory question: *What* script error?
> > >
> > > Beyond that, the msgbox wouldn't pop up on the client side even if it
> > > worked as you intended.
> > >
> > > See:
> > >
> > >
http://www.aspfaq.com/show.asp?id=2198
> > >
> > > (Which is likely the error you neglected to post...)
> > >
> > > Jeff[/color]
> >
> >[/color]
>
>
>[/color]