Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Brian Thompson
I'm not familiar with the tag; does that auto-include the script defining the validateForm() function? If not, I'd suggest a missing

Re: Struts Validator Framework: client-side validation problem

2011-09-02 Thread Dave Newton
quot; uri="/WEB-INF/struts-bean.tld" %> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 > Transitional//EN"> > > > > LoginPage > > > > > > > > > > > > > > > > > > > > Click here to   href=

Struts Validator Framework: client-side validation problem

2011-09-02 Thread RajasekharReddy
/DTD HTML 4.01 Transitional//EN"> LoginPage > Click here to   SignUp > -- View this message in context: http://struts.1045723.n5

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-24 Thread cacodemon79
Thank you very much. Laurie Harper wrote: > > I did what I should have done in the first place and looked it up: > Form.submit() is specified to *not* call the onsubmit handler, so this > is the correct behaviour (and should be consistent across all browsers). > > When in doubt, check the do

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Laurie Harper
I did what I should have done in the first place and looked it up: Form.submit() is specified to *not* call the onsubmit handler, so this is the correct behaviour (and should be consistent across all browsers). When in doubt, check the documentation :-) L. cacodemon79 wrote: Bingo! Now it wo

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
Hi, 2008/6/23 cacodemon79 <[EMAIL PROTECTED]>: > > Bingo! > Now it works! > Thanks a lot. > However i can't understand why the onsubmit handler is not triggered by the > submit() function! > Maybe it depends on Web Browser, did you try with others? Regards -- Lukasz http://www.lenart.org.pl/

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread cacodemon79
Bingo! Now it works! Thanks a lot. However i can't understand why the onsubmit handler is not triggered by the submit() function! Laurie Harper wrote: > > Did you confirm whether calling the form's submit() method triggers its > onsubmit handler? It may be that calling submit() bypasses it, in

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Laurie Harper
Did you confirm whether calling the form's submit() method triggers its onsubmit handler? It may be that calling submit() bypasses it, in which case an explicit guard in your submit function might do the trick: function submitRegistrazioneUtenteForm(nomeForm){ var form = ...; if (validateRe

Re: [struts] Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
> A beta version of firebug does work with 3.0 : > http://getfirebug.com/releases/index.html Thanks! -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [struts] Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Dale Newfield
Lukasz Lenart wrote: Maybe you should install Firebug for Firefox (not working with 3.0) and debug the JavaScript? A beta version of firebug does work with 3.0 : http://getfirebug.com/releases/index.html -Dale - To unsubscr

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread Lukasz Lenart
Hi, Maybe you should install Firebug for Firefox (not working with 3.0) and debug the JavaScript? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-23 Thread cacodemon79
No suggestions? :( I also tried to use document.registrazioneUtenteForm.submit()") instead of eval("document."+nomeForm+".submit()") but the result is the same. The form is submitted but I can't see any javascript alerts. I can't understand where is the problem. I hope you can help me. Thanks.

Struts Validator Framework: client-side validation problem with submitting buttons

2008-06-21 Thread cacodemon79
Hi, I'm using Struts Validator Framework (Struts 1.3). Server-side validation works well. The problem is in client-side validation. The form name I have to validate is: RegistrazioneUtenteForm. In my jsp page I have 2 buttons: 1) 2) and the following form declaration: Moreover I have enabled