This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:dynamic [18.11.2014 11:24] – alexander.ritter | en:create:dynamic [28.11.2014 13:15] – [Questionnaire Page] alexander.ritter | ||
---|---|---|---|
Line 17: | Line 17: | ||
**Note: | **Note: | ||
- | **Note:** The JavaScript code should be designed to hide unnecessary content; not show necessary content. This has the advantage, that participants with JavaScript deactivated can still answer the question as the question was not hidden. | + | **Note:** The JavaScript code should be designed to hide unnecessary content; not show necessary content. This has the advantage that participants with JavaScript deactivated can still answer the question as the question was not hidden. |
**Note:** Screenreaders, | **Note:** Screenreaders, | ||
Line 94: | Line 94: | ||
===== Example 3: Alternative Questions ===== | ===== Example 3: Alternative Questions ===== | ||
- | You have a drop-down selection " | + | You have a drop-down selection " |
{{: | {{: | ||
- | **Tip:** If you also take a visible selection into consideration, | + | **Tip:** If you also take a visible selection into consideration, |
Line 105: | Line 105: | ||
==== Questionnaire Page ==== | ==== Questionnaire Page ==== | ||
- | Perhaps you cannot work with the standard HTML IDs available -- because you integrate a question multiple times on the page for some of them and display different items for each one. In this instance, the questions to be shown are enclosed with '' | + | Perhaps you cannot work with the standard HTML IDs available -- because you integrate a question multiple times on the page for some of them and display different items for each one. In this instance, the questions to be shown are enclosed with '' |
Line 120: | Line 120: | ||
function blender() { | function blender() { | ||
- | // the value whose value corresponds to the answer code in the Variables | + | // the value whose value corresponds to the answer code in the Variables |
var selected = dropdown.value; | var selected = dropdown.value; | ||
// however, the value is text rather than a number | // however, the value is text rather than a number |