<script LANGUAGE="JavaScript" TYPE="text/javascript">
function CheckPass() {
        
       if ((document.process_member.pass.value) !=
(document.process_member.confirmit.value)){
                 alert("The passwords you entered do not match each
other. Please try again.")
                        return false;
               }else{
                                alert('hello');
                        }
return true;
}

</script>
</head>

<body>
<form name="process_member" action="" onSubmit="CheckPass();">
<input type="text" name="pass" /><br />
<input type="test" name="confirmit" value="ok"/><br />
<input type="submit" value="test">


</form>


On Mon, 22 Nov 2004 13:39:43 -0700, Ron Gowen <[EMAIL PROTECTED]> wrote:
> you have a single and a double qoute opening your alert message? and a
> double closing it
> 
> 
> 
> 
> On Mon, 22 Nov 2004 13:35:53 -0700, Charlie Griefer
> <[EMAIL PROTECTED]> wrote:
> > might want to try throwing an else in the function to alert('foo'); or
> > something...just to see if the function -is- being called but not
> > catching the mismatched values for some reason.
> >
> > is this page online somewhere i can take a look at the full page?
> >
> > On Mon, 22 Nov 2004 15:29:56 -0500, Phillip Perry
> >
> >
> > <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > Sorry for the ot but i'm in a bit of a pickle. Can someone tell me why the
> > > following code doesnt work?
> > >
> > > <script LANGUAGE="JavaScript" TYPE="text/javascript">
> > > function CheckPass()
> > > {
> > >         if (document.process_member.pass.value !=
> > > document.process_member.confirmit.value)
> > >                 {
> > >                         alert('"The passwords you entered do not match 
> > > each other. Please try
> > > again.")        return false;
> > >                 }
> > >
> > > }
> > > </script>
> > >
> > > <form ...blah... OnSubmit="return CheckPass();" name="process_member">
> > >
> > > pass and confirmit both exist. I'm not getting any error codes. It's just
> > > processing the form without doing the JS first. What am I doing wrong?
> > >
> > > Thanks,
> > >
> > > Phil
> > >
> > >
> >
> > 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185067
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to