Click to See Complete Forum and Search --> : Help with strings and arrays


robbymo
04-29-2007, 10:11 AM
My HTML knowledge is very small

but I have no clue how to interpret this with the page that I am doing

Each Question will have a static string that is the question text (prompt) and a form field (textarea/input/select-choice/checkbox/etc, as appropriate to the question) to record the response.

All Questions should be initially hidden, showing only after a Problem is chosen.

Each question should be able to be shown/hidden individually. The group of questions to display for each Problem should be designated in an array, which is used with a show/hide function to show or hide each question as desired, depending on what group is active (i.e., what Problem is chosen).


Advanced Feature: ;)
Think of the above as a “Set” of Questions with a Selector that determines which are currently shown.
Allow any Question to be a complete Set itself so that an additional Set can be “nested” inside a single question.
Hint: create ID parameters on the DIV elements with a hierarchical structure including Set and Question components. For example, id=”s1q2” might be the ID of Question 2 of Set 1). This is just an example ID; do not limit yourself to that particular format.



Can someone explain this to me?

ray326
04-29-2007, 10:32 PM
Sounds like homework.