Tag: javascript

Randomizing Captivate Quizzes

Captivate quizzes are easy to create, but they lack some often-requested features. Even using version 2, it is difficult, if not impossible, to randomize questions within Captivate. The following method will alter the html wrapper generated when you publish a Captivate project so that it chooses from a bank of alternate Captivate SWF files when the page opens.

Download example HTML wrapper file

When you publish to Flash (SWF) in Captivate, Captivate creates an HTML wrapper which contains the SWF file in an object tag. (Usually titled “ProjectTitle.htm”) There is a variable, “strURLFile ,” which determines which Captivate file is launched. In the unaltered file, this variable is set to the project title you set when you published.

Continue reading

Captivate and SumTotal 6.5: Part 1. Setup

I’m involved in producing some Captivate-based assessments for use with SumTotal 6.5. There are many settings and variables that must be set correctly to get everything working to our specifications, so it took some serious testing to figure out the best settings.

Hopefully this will shorten the time for anyone with similar needs.

The requirements: We are producing competency-based learning modules and assessments. Users must complete the multi-SCO assessment with a score of 100%. They aren’t that easy, so it is expected that they will need several if not many tries to complete one SCO. Each interaction within any given SCO will allow three tries before the slide moves on.
Each SCO will allow an infinite number of tries.

Continue reading

Debugging and troubleshooting HTML and javascript

Spreadfirefox Affiliate Button

Firefox, the web developer’s debugging tool of choice

The best browser to use to check javascript errors is Firefox, hands down. Other browsers have some error reporting, but none give you anywhere near the detailed information as Firebug, an addon to Firefox. The extensions available allow you to snoop into every aspect of your page, and into the communication between page and server.

You will need to get several Firefox extensions:

Firebug
Firebug is the one extension I can’t live without. It shows errors in javascript, css, allows you to inspect the HTML source, computed style, events, etc.

Continue reading

Docent, SCORM and cross-browser issues

During our recent Docent LMS implementation, one of the most difficult tasks I was faced with was to ensure SCORM activities work if browsers other than IE were used.

The specific cross-platform issues fell into several categories:

Definitions of terms used in this article:

  • LMS – Learning Management System – a system of launching and tracking online learning content. In this article I am mainly referring to the “Docent 6.5” LMS
  • SCORM – Sharable Courseware Object Reference Model – a communication standard used by online learning modules to communicate scoring and interaction data to a Learning Management System and vice-versa.
  • Continue reading

    Passing a variable in the URL to turn on and off layers in another page

    I have a series of five flowcharts in a tabbed layout, one flowchart per tab (seem to be doing tabs a lot lately). I wanted the user to be able to click a link on another page, and have the flowchart page open to the correct flowchart layer. A working example is here:

    Switch layers on the next page by clicking a link

    When I tried setting the value of a variable on the new page, it worked in some browsers but not others, probably because some computers are slower at loading pages than others, and the necessary layers would not be loaded in time for the variable to have something to populate.

    Continue reading