Add alert based on user's browsers
Dec 10, 2018
Hi folks
I come to you for guidance about browsers.
Our internal systems require users to be accessing course content on any browser EXCEPT Internet Explorer. But we answer too many support requests because the user doesn't know they are on IE. Is it possible I could add an alert if the LMS detects that a user has launched a course on any MSIE browsers?
If so, please advise which file (I think it might be in player.js, but I'm not sure) and where I'd write the alert message.
As always, your guidance is most appreciated!
jo xxx
5 Replies
How about detecting it within the HTML file using a Javascript?
Is there a reason why you need an LMS to detect MSIE browser?
Thanks Daniel
We've created all mandatory courses in HTML5 only. But when users with IE as their default launch the course, they cannot understand why the content won't function. My users are customer service specialists so aren't always aware that the problem relates to the browser they're using. I'm hoping that by adding an alert when IE is detected, it will remind why it's not working.
I've attempted to add this to the player.js document in the Program Files:
// Unsupported Browser
if (navigator.userAgent.indexOf('MSIE')>0) {
document.write('You have launched this course via the Internet Explorer browser. This means that the content will not function effectively. Find out how to open each and every time via the Chrome browser <a href='http://genie/Interact/Pages/Content/Document.aspx?id=33351> please click here'</a>);
};
But this doesn't appear to be working. Any obvious reasons why it's not?
xxx
The code below detects the browser, you can insert it as a trigger and then have the if statement set a Storyline variable and do whatever you want with that. Let me know if you need any help.
Thanks Michael
Do I need to make any changes to the imsmanifest as well? When users launch the content via IE, they often get the grey screen...which I'm presuming is one of the blank.html files. Am I making the wrong assumption?
xxx
I'm not sure. Have you tried running the course (or a copy of it) with debugging turned on? You may want to do this with a copy so that your users don't see the debugging window. This might give you more of an idea of what the problem is and what files are being displayed. What LMS are you using?
This discussion is closed. You can start a new discussion or contact Articulate Support.