Javascript working in everything but IE
Feb 26, 2019
Hello,
I'm aware that E-LH don't support Javascript, but... I was wondering if anyone else had come across an issue with Javascript not running in Internet Explorer or Edge? Everything works fine on PC and Mac Chrome/Firefox/Safari, it's just that IE refuses to action any of the JS or present any errors.
Is this a problem that IE has with JS? Has anyone come across it before?
Here is my code that grabs the name from the URL and sets a variable:
function gup( name )
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
var player = GetPlayer();
var sid = gup("u");
var sname = gup("f");
player.SetVar("uuid",sid);
player.SetVar("StudentName",sname);
}
Many thanks in advance,
Adam
2 Replies
Hi! Did you get this working? Also encountering the same issue!
I'm also having this issue - any ideas @Articulate?
This discussion is closed. You can start a new discussion or contact Articulate Support.