[Xerte] Updated Dynamic Menu Example

Mark Tomlinson, AC&S Ltd mark.tomlinson at acns-group.com
Tue Apr 15 10:41:39 BST 2008


Ahhh...I 'fixed it' 

I used a reverse proxy to see what was going on and a file was not being
found:  apiwrapper.js

The LMS is running on a linux server and so is case sensitive.  The filename
is actually APIWrapper.js

Changing the filename on the server to apiwrapper.js makes it all work
correctly now.

Looks like you guys are used to Windows and it's 'don't care about the case'
outlook??

Mark 

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tenney Julian
Sent: 15 April 2008 10:10
To: Xerte discussion list
Subject: [Xerte] Updated Dynamic Menu Example

Mark,

I just updated the dynamic menu example for 2004. It works fine in the test
suite.

http://www.nottingham.ac.uk/xerte/examples/dynamicMenu2004.zip

The code was originally written for SCORM 1.2. What I did was:

Check that the API calls were working and returning values correctly (they
are - so I knew it wasn't the SCORM itself failing, and Xerte is indeed
compliant); Check the data element names I was using to get data were
correct (they weren't - so I fixed them. 1.2 uses cmi.core.suspend_data
whilst 2004 uses cmi.suspend_data) Checked the logic that builds the menu -
and made a few adjustments. The test suite returned the string "undefined"
for the call to suspend_data on the first visit, which tripped me up. I was
expecting "". I'm not sure what the docs say should be returned when you ask
for suspend_data that hasn't been set yet.

I used Test Suite 1.3.3 in IE7 no problem.

I made quite a lot of use of fscommand("messageBox", msg); to debug the
values once the piece was running in the browser.

HTH

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




More information about the Xerte mailing list