Property name: Java Script
Property name: Java Script
Property name: Java Script | |
Question types applied |
All |
Description |
This is the place where you can specify java script that you would like to execute in the viewer together with a question. |
Business logic |
To attach movies in a Multimedia question, add these statements to this property: quest.mm.path = “file:// path” quest.mm.addSequence (value[“movie_name_1”,“movie_name_2”,…]) where - value: a number which starts from 1. If the trace bar is not shown, its value will be the answer to this question. Otherwise, the answer to this question will be calculated through the movement the respondent made on the trace bar. - movie_name_x: name of a movie clip which will be added to this question. The valid file is one of multimedia file types such as .asf, .wma, .wmv, .avi, .mpe, .mpg, etc. To know more about these file types, visit http://support.microsoft.com/kb/3169 quest.mm.showtrace = true/false - If its value is true, the trace bar will be shown in the clip. While watching the clip, the respondent can move the arrow on the trace bar to indicate how interesting the clip is. This information will be calculated to produce an answer to this question. - If its value is false, the trace bar won’t be shown. The answer to this question is the number in the statement addSequence above. quest.mm.width = width For other question types: If a question has property Required, when the respondent answers it and move to the next one, this question will be checked to satisfy some conditions. If these conditions are satisfied, it can move to a next question. However, if in the Script text property of this question contains the text below, the respondent does not have to answer it: function questioncheck() |
Formatting |
JavaScript language |
Screen examples |
This image shows how the Questionnaire Editor looks when it has the Script text property. |