[Xerte-dev] Re: SCORM GetValue/SetValue

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Mar 28 12:30:55 GMT 2013


The functions are defined in MainPreloader.swf

You call _level0.get / setValue(), which does the ExternalInterface.call(jsfunctions) stuff. The initialise and quit are done automatically by the web page, so developers only have to worry about get / set values.

What you suggest should be easy enough: add something to the FRAMEWORK.prototype functions to track stuff if tracking is turned on...

J

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 28 March 2013 11:46
To: For Xerte technical developers
Subject: [Xerte-dev] SCORM GetValue/SetValue

Julian,

I know you can use _level0.GetValue and level0.SetValue in .rlmscripts, but how does that work? How and where is level0.SetValue defined and how does it know to call the javascript SetValue function.

I would have expected a definition of SetValue somewhere in the engine that calls callJS(SetValue... or something similar, but I can't find anything in the Engine.

What I want, is to change the FRAMEWORK.OpenPage and FRAMEWORK.ClosePage to track entry and exits of pages using scorm or tin can (or nothing, in that case iy would call some empty functions, like the  previewer is doing now for the scorm tracking.

Tom

--
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196


_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev



More information about the Xerte-dev mailing list