Resetting variables when learner switches to another browser
At my organization, most of our staff still use Internet Explorer. However, IE does not always handle HTML5 very well, so we want to force them to open our e-learning modules in Chrome.
So I wrote a bit of JavaScript that detects whether or not the learner is using Chrome. The JS then assigns a value of 1 to a user variable (chromecheck) if the browser is Chrome. Then I have a conditional advanced action that says: if chromecheck = 1, continue on, else display a message that tells the user to close their browser and relaunch the lesson in Chrome.
This works just fine if the user initially launched in Chrome. The lesson proceeds as normal. And if they open in Internet Explorer, they receive the message that they need to switch to Chrome.
But when they reopen in Chrome, they are told they aren't in Chrome and need to switch to Chrome. I assume this is because the LMS has retained the value of the chromecheck variable, and that variable is telling Captivate that they user is in a non-Chrome browser, even though they have switched to Chrome.
I realize that there is an option in Preferences > Quiz > Reporting > Advanced to instruct CP to never send resume data. That would solve the problem.
HOWEVER, we don't want to check that option. If the user has to quit a module for some reason, we want them to be able to pick up where they left off. So checking the "Never Send Resume Data" option is not an option.
How, then, can I reset the chromecheck variable if the user launches the module again in Chrome after first opening it in IE?
Any help is very much appreciated!
