Forum Discussion
Order of Triggers using Javascript
Hi Steve,
I appreciate your input. With your input on how this might be happening I made some changes and am very please with how this works. I split up some of the JavaScript logic on different layers. The primary JavaScript that starts was changed to start after a 1 second media files timeline finishes. It is 1 second of silence. The rest of the JavaScript is on layers which are triggered based on values of variables.
For anyone wishing to track training without an LMS, for example SharePoint, I have worked out how to communicate to and from Storyline from an outside application.
The overall concept was to place all my scripts and logic in a single slide and make it the first slide of the course. It is removed from the menu and only displays for 1 second before jumping to the Opening slide of the course. All communication to and from the course is via cookies.
Then anywhere in the course I change a variable to "Update" and jump back to slide 1 to do the updating to the external application.
There are two reasons for this approach.
1. It is very easy to implement
2. When jumping out of a course, the remember where you left off, always starts at the beginning of the course.
I have attached a storyline course to be used for testing and the implementation instructions. I realize you need to have access to SMART to fully test this but with the Story file and instruction anyone should be able to adopt it to their own application.
Note:
You previously worked with me on getting Cookies to work with Storyline through JavaScript. The solution to that is included in the Story file. Turns out the set cookie command needed to end with /path
Related Content
- 5 months ago