Title: 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'")
#end

But, 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

Reply via email to