Captivate and JavaScrip
February 7, 2008 12:00 AM
Hi All,I have researched and tried many solutions and none seem to work. Please help FACTS1. I have a Lectora course published to HTML. The initial page luanches the rest of the course in pop up window so that I could avoid the browser getting in the way and save room on real-estate.2. Within my course (that is actually in the pop up window I describe in point 1 above) I have a link to an interactive Captivate Sim named "Sim1". It plays using the following action- GoTo Website Sim1.htm. I of couse have the appropriate files attached to title for this to work. It works fine.ISSUEOn last page of Sim, I want user to click an "Exit Simulation" button that has Javascript attached that will close the Simulation and return the learner to either the same page that the originally launched sim from, or it can return learner to the next page after that. It is NOT working though.HERE IS WHAT I'VE TRIED1.I am not a whiz at javascript to I entered the following codes exactly like you will see them- minus the quote marks around them.2. I tried just saying close sim at end of it. It did not work for everyone. I did nto use any Javascript...but ticked option for sim to close at end of Sim. This option is in Captivate.3. I tried making button and attaching Javascript to it. I entered "self.close()" -nothing was inside the parenthesis here. This did not work.4. I also tried button again and in the box that pops up for you to add Javascript I typed this exactly "trivNextPage()". I cannot figure out what I am doing wrong.This did not work either.Thanks,Michele MorganPS- Also the playback control in my captivate files contains an x button and it does not exit course when it is clicked. I may try BeWitched but am not sure it'll give me exactly what I am looking for after talking them yesterday. They are nice people eager to help though.
Discussions have been disabled for this post