You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <lg...@mobilebox.pl> on 2006/02/19 12:03:44 UTC
[ajax cforms] tabs loaded with separate requests
I am in a need of a following functionality, so if anybody could outline
me the possible solution I will do the implementation:
I have a large form with lots of read only data ( repeaters ). When I
say large I mean dynamic html up to 1 MB. The form is organized in
several tabs (one repeater per each repeater). What I would like to
achieve is to order cforms to load the tab on request. This probably
requires some javascript event handlers on client side along with
conditional view generation in the pipeline.
Is this feasible?
--
Leszek Gawron lgawron@mobilebox.pl
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65
Re: [ajax cforms] tabs loaded with separate requests
Posted by Sylvain Wallez <sy...@apache.org>.
Leszek Gawron wrote:
> I am in a need of a following functionality, so if anybody could
> outline me the possible solution I will do the implementation:
>
> I have a large form with lots of read only data ( repeaters ). When I
> say large I mean dynamic html up to 1 MB. The form is organized in
> several tabs (one repeater per each repeater). What I would like to
> achieve is to order cforms to load the tab on request. This probably
> requires some javascript event handlers on client side along with
> conditional view generation in the pipeline.
>
> Is this feasible?
You could have each tab be a different form, and thus a different page.
But if you want/need to have everything in a single page, you can have
the form definition contain one group per tab, with only the initial
group being active, all others having state "invisible".
Then you can have the tab labels be links to actions that not only
change the displayed tab, but also change the corresponding group's
state to "active".
Sylvain
--
Sylvain Wallez Anyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director