Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / October 2006



Tip: Looking for answers? Try searching our database.

Dynamically Generated Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
javatech - 26 Oct 2006 21:34 GMT
My company has a database-driven system of web forms, each of which consists of
many questions in various layouts (2-column radio, 1 column checkbox, etc). The
forms are never hard-coded. Each HTTP request causes Java code to perform DB
queries to dynamically generate the various questions and answers. Those
questions are then rendered through JSP and Struts tiles into HTML.

The HTML also contains JavaScript functions to hide/show conditional questions
on the web page based on answers to earlier questions.

Now we're trying to figure out the best way to adapt this system to use a
Flash front-end instead of HTML/JavaScript.

My preliminary research suggests at least two possible approaches:

1. A pre-compiled SWF could send a request with certain parameters, and the
server could respond with an XML description of the form to build. Then the SWF
could parse that XML and dynamically generate the form using attachMovie for
each form element (with a lot of math to determine relative positions of
elements with variable sizes, like text labels).

2. Flex might reduce the code for placing elements, by using MXML to describe
the form structure as well as visual arrangement. I haven't used this yet, and
I'm wary of Flex 2 simply because it requires Flash Player 9 which is only at
50% browser penetration
(http://blog.flashforwardconference.com/2006/09/12/adobe-keynote-some-highlights
/) but I might try an earlier version of Flex if it helps.

Does anyone have a suggestion about the best approach to solving this problem?

Thanks in advance for any advice.
flashofscarlet - 28 Oct 2006 18:21 GMT
Umm..ofcourse I would prefer the 2nd one, if I am not too bothered about
browser penentration. Another factor to consider is the availability of a good
server supporting Flex.

I would suggest using the 1st method and then maybe later on change to the
second one, if really needed.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.