RE: Calling action within javascript

2005-02-22 Thread Doug Ly
Thanks. It works now. --Doug -Original Message- From: Slawek [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 2:11 PM To: MyFaces Discussion Subject: Re: Calling action within javascript no try this: function checkPassword(){ //validation logic If (isOK

Re: Calling action within javascript

2005-02-22 Thread Slawek
Alert("not match"); } } But it doesn't seem to work. Thanks --Doug -Original Message- From: steve rock [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 11:36 AM To: MyFaces Discussion Subject: Re: Calling action within javascript I think onclick="

RE: Calling action within javascript

2005-02-22 Thread Doug Ly
riginal Message- From: steve rock [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 11:36 AM To: MyFaces Discussion Subject: Re: Calling action within javascript I think onclick=" return checkPassword(this.form)" then return true from your javascript function to submit, else false t

Re: Calling action within javascript

2005-02-22 Thread steve rock
I think onclick=" return checkPassword(this.form)" then return true from your javascript function to submit, else false to cancle submit. On Tue, 22 Feb 2005 11:29:21 -0600, Doug Ly <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I have a javascript to confirm the passwords are matched which w

Calling action within javascript

2005-02-22 Thread Doug Ly
Hi, I have a _javascript_ to confirm the passwords are matched which will be executed on onclick event of a commandButton tag.   The problem is after onclick event, how can I call the event action in my _javascript_? Thanks --Doug