On Tue, Jun 10, 2008 at 8:40 AM, Guilherme Aiolfi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Trying to learn how create forms in qooxdoo I found qx.legacy.html.Form:
> "Should be re-created using stuff which looks good in prototype or Base2
> etc.".
>
> That's the only class that deal with forms at the moment. Reading (or
> searching) about how prototype or base2 deal with forms I'm not sure how
> qooxdoo will do it.
>
> What I'm want to know is if qooxdoo will be able to solve this scenario:
>
> One TabView with 3 Tabs. Tab 1 and 3 have fields of Form1 and Tab 2 has
> fields of Form2. For example:
>
> Tab 1 (Basic info) - name, last name, address.
>
> Tab2 (Images) - description, file.
>
> Tab 3 (Additional info) - Father and mother's name
>
> I have this scenario (not exactly like that) in my app that I've plan to
> migrate. When submiting Form1: name, last name, address, father and mother's
> name should be submitted. And description and file should be submitted on
> Form2.
>
> Since I can't have one form inside another form, how to create this form?
You can submit forms with any data you like. Rather than defining the
"form" as you would in HTML (with all fields being pre-assigned to the
form), you can instead dynamically submit the data using
qx.io.remote.Request. If your data is short, you can add your "form field"
data as parameters using the setParameter() method. If you have large
amounts of data in your form, you should instead use setFormFields() which
will cause the data to be sent as a POST instead of a GET.
Cheers,
Derrell
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel