html.settings.radioWarning

getHtml(id).settings.radioWarning( message ) Defines the error message that gets displayed if no radio button of an obligatory group is checked when calling . If you use %name% in the string it will be replaced with the element’s name. Example: [js highlight=”4″ try=”true”]newHtml(“intro”, “example_intro.html”) .settings.checkboxWarning(“It is highly recommended that you check the ‘%name%’ box before continuing”) …

html.settings.inputWarning

getHtml(id).settings.inputWarning( message ) Defines the error message that gets displayed if an obligatory input field is not filled when calling . If you use %name% in the string it will be replaced with the element’s name. Example: [js highlight=”3″ try=”true”]newHtml(“intro”, “example_intro.html”) .settings.checkboxWarning(“It is highly recommended that you check the ‘%name%’ box before continuing”) .settings.inputWarning(“We would …

html.settings.checkboxWarning

getHtml(id).settings.checkboxWarning( message ) Defines the error message that gets displayed if an obligatory checkbox is not checked when calling . If you use %name% in the string it will be replaced with the element’s name. Example: [js highlight=”2″ try=”true”]newHtml(“intro”, “example_intro.html”) .settings.checkboxWarning(“It is highly recommended that you check the ‘%name%’ box before continuing”) .settings.radioWarning(“Please consider selecting …

controller.wait

getController(id).wait() (since PennController 1.7) or getController(id).wait( test ) (since PennController 1.7) Waits until the controller has been completed. Example: [js highlight=”9″ try=”true”]newButton(“Start reading”) .print() .wait() .remove() , newController(“DashedSentence”, {s: “The mouse that the cat that the dog is petting is hugging is happy”} ) .print() .log() .wait() .remove() , newText(“Good job!”) .print() [/js]

video.settings.disable

getVideo(id).settings.disable() or getVideo(id).settings.disable(opacity) (since PennController 1.6) Will disable the controls interface. Note that some browsers might make the controls disappear altogether. If you pass no parameter, a 50% opaque layer will be printed on top of the interface. You can pass a value from 0.01 (fully transparent***) to 1 (fully opaque) to control the aspect …

audio.settings.disable

getAudio(id).settings.disable() or getAudio(id).settings.disable(opacity) (since PennController 1.6) Will disable the controls interface. Note that some browsers might be render disabled interfaces as a plain gray rectangle with no controls visible whatsoever. If you pass no parameter, a 50% opaque layer will be printed on top of the interface. You can pass a value from 0.01 (fully …

scale.unselect

getScale(id).unselect() (since PennController 1.6) Will unselect the option currently selected. If the scale is a slider, it will set it back to the central value. Example: [js highlight=”5″ try=”true”]newScale(“score”, 10) .print() , newButton(“Unselect”) .settings.callback( getScale(“score”).unselect() ) .print()[/js] Prints a 10-point radio button scale and a button reading Unselect which, when clicked, unselects the currently selected …