Title: Message
I have a client side library that I have built for some projects, that I have integrated into the vm templates (webwork ui components) and my own freemarker macros.
 
It requires _javascript_1.3 and works on IE4+ and Netscape 6+
 
There are two modules
 
1) form model 
    abstracts the form and inputs into a _javascript_ object model
2) validation model
    object model for validators that register with the form model
 
Currently, I don't have a way to turn it on / off per form, though I will look into that asap.
 
This will certainly be a post 2.0 feature sorry.. I am a little busy at the moment.
 
Cameron.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Lightbody
Sent: Thursday, 9 October 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] _javascript_ actions on form components?

Sounds like this should get fixed – also, I’d like to see WW support client side validation sometime soon (post 2.0 at this rate).

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 11:27 AM
To: [EMAIL PROTECTED]
Subject: RES: [OS-webwork] _javascript_ actions on form components?

 

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?

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