standard.settings.after

getElement(id).settings.after( getElement(id) ) Adds some content to the right of the element. Example: [js highlight=”9,13″ try=”true”] newImage(“bad”, “no.png”) , newImage(“good”, “ya.png”) , newText(“left label”, “Bad”) .settings.before( getImage(“bad”) ) , newText(“right label”, “Good”) .settings.after( getImage(“good”) ) , newScale(“judgment”, 5) .settings.before( getText(“left label”) ) .settings.after( getText(“right label”) ) .print() .wait() [/js] Creates two image and two text …

standard.print

getElement(id).print() or getElement(id).print(x,y) (limited support in PennController 1.3, general since 1.4) or getElement(id).print(x,y,canvas) (limited support in PennController 1.3, general since 1.4) Adds the content of the element to the screen. This has no effect for non-visual elements such as the purely interactive . Since PennController 1.3, you can pass x and y values to print …

html.test.complete

getHtml(id).test.complete() (since beta 0.3) Tests whether all the obligatory fields form the HTML document have been filled. See the IBEX documentation about the Form controller for a discussion of how fields are set as obligatory. Example: [js highlight=”7″ try=”true”]newHtml(“demographics”, “example_intro.html”) .print() , newButton(“continue”, “Continue to the next page”) .print() .wait( getHtml(“demographics”).test.complete() .failure( getHtml(“demographics”).warn() ) )[/js] …

html.settings.log

getHtml(id).settings.log() (since beta 0.2) Will add a line at the end of the trial for each <textarea>, <input type=’text’>, <input type=’checkbox’> and <input type=’radio’> in the document. Example: [js highlight=”2″]newHtml(“feedback”, “Feedback.html”) .settings.log() .print() , newButton(“send”, “Send”) .print() .wait()[/js] Adds the content of the file Feedback.html from the Resources (chunk_includes) folder of the Ibex project to …

html.warn

getHtml(id).warn() (since beta 0.3) Displays an error message for each of the obligatory fields from the HTML document that have not been filled yet. See the IBEX documentation about the Form controller for a discussion of how fields are set as obligatory. Example: [js highlight=”8″ try=”true”]newHtml(“demographics”, “example_intro.html”) .print() , newButton(“continue”, “Continue to the next page”) …