Forum OpenACS Development: extJS and forms

Collapse
Posted by Malte Sussdorff on
Has anyone worked on generating javascript form code out of ad_form or ::Generic::Form yet? I am in the process of doing that with extJS as it allows me better positioning of the form elements as well as side actions.

I would just love not to reinvent the wheel here, so if someone has worked on this (if only conceptionally) then your experience and suggestion is highly valued.

Collapse
2: Re: extJS and forms (response to 1)
Posted by Taras Mitran on
We use extjs and openacs extensively, but we don't use ad_form. Ultimately, trying to have code generate javascript is going to be much more of an uphill battle than just writing the code directly. The only exceptions might be highly-supported toolkits like Google's GWT (and especially with something like the sencha GWT tools on top).

Writing javascript doesn't have to mean you end up writing the same code all over though - it can be written MVC style, made into reusable components, etc.

Taras