You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Steve <co...@excite.com> on 2004/05/31 18:32:14 UTC
Form API v2 and v3 (Urgent)
Hi, Can anyone tell me which versions do the below functions belong to:- 1. var wid = form.getWidget(); var widvalue = wid.<widget-id>.value 2. var wid = form.getWidget("<widget-id>").getValue(); Similarly for submit buttons :- 1. var submit_button = form.getWidget().getSubmitWidget(); if(submit_button == "<button_id>") // then do something 2. var wid = form.getWidget(); wid.<button-id>.onActivate/onClick = // do something.... Please guide me. I am using 2.1.5 version of cocoon.
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
Re: Form API v2 and v3 (Urgent)
Posted by Bruno Dumon <br...@outerthought.org>.
On Mon, 2004-05-31 at 18:32, Steve wrote:
> Hi,
>
> Can anyone tell me which versions do the below functions belong to:-
>
That's a strange question. I would suspect you know which API you're
using? Anyway, seems like it's mostly v2.
>
> 1. var wid = form.getWidget();
> var widvalue = wid.<widget-id>.value
>
> 2. var wid = form.getWidget("<widget-id>").getValue();
>
> Similarly for submit buttons :-
>
> 1. var submit_button = form.getWidget().getSubmitWidget();
> if(submit_button == "<button_id>")
> // then do something
>
> 2. var wid = form.getWidget();
> wid.<button-id>.onActivate/onClick = // do something....
>
> Please guide me.
>
> I am using 2.1.5 version of cocoon.
--
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