Script Examples

Examples Index ...
Confluence Notes

Run Examples

example jnlp jnlp Date of last change otml file most recent revision
jruby-scripting-testbed learner author Mon, 25 Aug 2008 18:47:34 GMT jruby-scripting-testbed.otml 15027
jython learner author Mon, 10 Mar 2008 21:03:42 GMT jython.otml 12838
prototype-script-view learner author Wed, 03 Oct 2007 22:36:59 GMT prototype-script-view.otml 594
script-button-edit-test learner author Fri, 07 Nov 2008 02:57:45 GMT script-button-edit-test.otml 16170
script-button-external-test learner author Fri, 11 May 2007 17:37:11 GMT script-button-external-test.otml 40
script-button-jruby-external-test learner author Fri, 18 May 2007 16:01:20 GMT script-button-jruby-external-test.otml 63
script-button-launch-browser learner author Fri, 07 Nov 2008 16:52:59 GMT script-button-launch-browser.otml 16176
script-button-test learner author Fri, 11 May 2007 17:37:11 GMT script-button-test.otml 40
script-object-exception-test learner author Wed, 03 Oct 2007 22:34:34 GMT script-object-exception-test.otml 593
script-object-test learner author Tue, 07 Aug 2007 16:38:10 GMT script-object-test.otml 314
script_basic_example learner author Wed, 03 Oct 2007 23:11:56 GMT script_basic_example.otml 599
script_contents_report_test learner author Tue, 20 Nov 2007 20:44:05 GMT script_contents_report_test.otml 8811
xhtml-script-basic learner author Wed, 30 Jul 2008 23:42:49 GMT xhtml-script-basic.otml 14564
xhtml-script-css learner author Wed, 30 Jul 2008 23:42:49 GMT xhtml-script-css.otml 14564
xhtml-script-example learner author Wed, 27 Feb 2008 22:21:12 GMT xhtml-script-example.otml 12665

MacOS X Java Web Start Problem

If you are using Java 1.5 on MacOS 10.4 or 10.5 you will almost certainly need to run some version of the fixes described on our How to fix Mac OS X WebStart bugs, once on each computer you run the Concord SAIL-OTrunk activities on. If you update Java on your Macintosh you will need to fix this problem again. The problem appears on Mac OS X computers when starting a Java Web Start program you have run before -- if a jar file needs to be updated the download process will freeze without completing.


Description of the difference between running an activity in learner mode and author mode

Running an OTrunk example in learner mode uses the default view mode which assumes a learner. In addition if you use the File menu to save the otml only the differences between the activity otml and the changes will be saved. The otml saved is the learner difference otml and is often much smaller than activty otml.

Running an OTrunk example in author mode sets the following jnlp properties:

Setting otrunk.view.author to true causes the entire OTrunk state to be saved as otml when a File save is performed. Setting otrunk.view.mode to authoring is used in the view system to enable authoring affordances in the views. Many examples do not have special authoring views. The Basic Example: document-edit.otml does have both authoring and student view modes.


All Files

OTViewer_PrototypeScript.launch
OTViewer_ScriptButton Edit Test.launch
OTViewer_ScriptButton JRuby Test.launch
OTViewer_ScriptButton Javascript Test.launch
OTViewer_ScriptObjectTest.launch
OTViewer_XHTMLScriptBasic.launch
OTViewer_XHTMLScriptExample.launch
exception-test.js
external-script.js
external-script.py
external-script.rb
index.html
jruby-scripting-testbed.otml
jython.otml
mw-script.js
ot-index.html
prototype-script-view.otml
script-button-edit-test.otml
script-button-external-test.otml
script-button-jruby-external-test.otml
script-button-launch-browser.otml
script-button-test.otml
script-object-exception-test.otml
script-object-test.otml
script_basic_example.otml
script_contents_report_test.otml
script_jython.launch
scripts
text-field-author.js
xhtml-script-basic.otml
xhtml-script-css.otml
xhtml-script-example.otml

The jnlp urls were constructed using the following template:
http://saildataservice.concord.org/2/offering/144/jnlp/540/view?sailotrunk.otmlurl=%otml_url%&sailotrunk.hidetree=false
You can change this string by putting it in a file named: jnlp_url.tmpl in this directory