Captivate-to-Javascript Example: HTML-based feedback

Click a brother to receive feedback in the body of the HTML document

It appears you either don't have Flash Player 7 (or higher) installed, or you have JavaScript disabled in your browser. Please make sure Flash Player is installed and JavaScript is enabled, then refresh your browser.
Click log:

This is an example of JavaScript calls being sent from a Captivate SWF to the browser window, where the calls are received and acted upon.

Clicking one of the Captivate SWF's click boxes (invisible, located over the Mario brothers) will send a JavaScript call from the SWF to the browser window. For this example, the click boxes both call a simple function named identify(), with the particular character's name passed as a variable: identify("luigi"); and identify("mario");.

identify() was defined in the HTML, and manipulates DOM elements to display messages and a simple 'click log'. Each time a click box is clicked, the name of the clicked character is added to the log display. In a robust system, this data could be passed to a database, LMS, or course interface.

Mario artwork © Nintendo, used purely for demonstration purposes.
Demonstration created by Philip Hutchison, July 2007 - November 2007.

This work is licensed under the Creative Commons Attribution 3.0 Unported License.
To view a copy of this license, visit or send a letter to
Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.