Exactly, the form.vm component just omits it in the resulting html...
but, as I'm not sure if ww2 supports client-side validation of some sort, I
thought it was better to ask before changing that.
-----Mensagem original-----
De: Robert Douglass [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 7 de outubro de 2003 13:38
Para: [EMAIL PROTECTED]
Assunto: RE: [OS-webwork] _javascript_ actions on form components?
De: Robert Douglass [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 7 de outubro de 2003 13:38
Para: [EMAIL PROTECTED]
Assunto: RE: [OS-webwork] _javascript_ actions on form components?
What
does the html output look like? Does the onsubmit bit simply not show
up?
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 5:32 PM
To: [EMAIL PROTECTED]
Subject: RES: [OS-webwork] _javascript_ actions on form components?That would change the behaviour I want - because you can submit a form without a click in the submit button, but, anyways, it doesn't work, either...-----Mensagem original-----
De: Robert Douglass [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 7 de outubro de 2003 13:17
Para: [EMAIL PROTECTED]
Assunto: RE: [OS-webwork] _javascript_ actions on form components?Does it make a difference if you put it in onclick for the submit button?-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 5:06 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] _javascript_ actions on form components?Hi :)
I'm trying to come up with some _javascript_ validations for a couple of forms here, and I'd like to attach an event method on the form submit:
#bodytag(Form "method='post'" "action=''" "")
#tag ...
#tag ...
#tag(Submit "value='Proceed'")
#endBut, looking at the templates provided, looks like the onSubmit event is being ignored. Is there a better way to do this, or should I change the templates?
Peace,
-cv