You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marcin Okraszewski <ok...@o2.pl> on 2003/11/16 21:49:54 UTC

Woody form validation function isn't working?

Hello,
I have a problem again :-( I can't make form validation function 
working. If I do such expression:

form.show("admin/entry-form.xml.html", function(form) {
     model.importance++;
     return false;
});

doesn't change value of "importance" widget in web form. On the other 
hand, the fallowing does change:

while (true) {
     form.show("admin/entry-form.xml.html");
     model.importance++;
}

Shouldn't both approaches give the same result? What am I doing wrong?

Regards,
Marcin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Woody form validation function isn't working?

Posted by Bruno Dumon <br...@outerthought.org>.
On Sun, 2003-11-16 at 21:49, Marcin Okraszewski wrote:
> Hello,
> I have a problem again :-( I can't make form validation function 
> working. If I do such expression:
> 
> form.show("admin/entry-form.xml.html", function(form) {
>      model.importance++;
>      return false;
> });
> 
> doesn't change value of "importance" widget in web form. On the other 
> hand, the fallowing does change:
> 
> while (true) {
>      form.show("admin/entry-form.xml.html");
>      model.importance++;
> }
> 
> Shouldn't both approaches give the same result? What am I doing wrong?

Seems like you're still using the old woody.js flowscript integration. I
recommend switching to woody2.js. All samples use woody2.js now. See
also the source of woody2.js for some API docs.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org