From the course: Adobe Captivate: Advanced Actions

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Extending Captivate with JavaScript

Extending Captivate with JavaScript - Captivate Tutorial

From the course: Adobe Captivate: Advanced Actions

Start my 1-month free trial

Extending Captivate with JavaScript

- [Instructor] You can use JavaScript to extend the abilities of your project beyond what comes with Captivate. In this video, we'll use some simple JavaScript to display the duration of a project to the user. Now, don't get me wrong. You can use advanced actions to do a lot in Captivate. However, there are some things you can't do in advanced actions that you can do in JavaScript. Examples would be generating a random number, and then using that to add an element of chance to your project. Another example would be having data persist from session to session for the user, or checking that a user has entered in an email address in the correct format. You could even load in data from an XML file. For now, we'll dynamically find out the duration of a project, and then format that number using rounding and so on, to display it in a visually pleasing way. Those are both functionalities that advanced actions simply don't…

Contents