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

A cross-browser keypress detection javascript

We have learning modules that have a lot of pages, and it occurred to me it would be easier on people’s hands if they could simply use the right and left arrow keys to navigate through the module.

After a day of great frustration, I realized that it’s nearly hopeless. Not only do all the browsers report different keycodes for the right and left arrow keys, but Firefox and Safari report both of them as “0” which makes it impossible to distinguish between them.

keys.jpg

Continue reading

Create a search form or quick report in asp

The example code below shows how to set up a form using Dreamweaver and ASP that queries a database based on the value of one or more form fields.

We have a database containing the transcripts of the results of courses taken in our online learning management system. Each online SCORM course has several sections or lessons. This form checks the status and score on each individual lesson, given the user’s id and the course code.

The tables and fields involved are:

Continue reading