Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Varying input-forms (based on input)

Status
Not open for further replies.

Olavxxx

Programmer
Sep 21, 2004
1,134
NO
Hi,

Im currently making an input form and i have a .dtd, where some input-fields vary on tags.

This might be the case:
<!ELEMENT blah (a*,b*,c?))>
<!ELEMENT foo (d*,e*,f?))>
<!ELEMENT bar (g*,h?))>

eg. if element blah is there, show input fields a, b and c
if element foo is there, show input fields d, e and f.

I will display blah, foo and bar in a dropdown-list, as theese are constants which will fill a variable.

What will be the "best practice" to generate the "dynamic forms" for this? I looked slightly at xforms, but I dont think that will do this for me.

Ps. I use AJAX, so I guess I could use clientside to generate input, based on the selected value?

What would YOU do? - Feel free to show me some sample dynamic input forms (url?)

Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top