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
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