Microsoft SCORM Package works with Firefox, but not with Internet Explorer

Re: Microsoft SCORM Package works with Firefox, but not with Internet Explorer

by Christoph Ackermann -
Number of replies: 7

Thanks for the tipps! With IE7-mode it actually works.

I also had the problem, that the theme didn't work with IE7, so I switched the SCORM-course to open in a new window and changed the head for the popup.

As one little addition I've added the following condition:

<?php if ($modname == 'scorm') {echo("<meta http-equiv='X-UA-Compatible' content='IE=7' />");}?> 

Now it should only use the IE7-mode for SCORM-popups. In the first tests it seems to work fine.

 

Thanks again!

Christoph

Average of ratings: Useful (1)
In reply to Christoph Ackermann

Re: Microsoft SCORM Package works with Firefox, but not with Internet Explorer

by Moten ZHang -

hello,

i also have this issue

i want to know what's the meaning of string $modname  in your code?

<?php if ($modname == 'scorm') {echo("<meta http-equiv='X-UA-Compatible' content='IE=7' />");}?> 

when i add it, i got the error HTTP 500


and when i just add the below code ,my SCORM will work, but my theme Clean couldn't work well

<meta http-equiv='X-UA-Compatible' content='IE=7' />


and i try to change the condition to detect the URL, it means when the URL has keyword "player.php", i set the IE=7 or 8

<?php if ($some URL RULE) {echo("<meta http-equiv='X-UA-Compatible' content='IE=7' />");}?>

right now, i'm working on the 3rd solution

thank you


In reply to Moten ZHang

Re: Microsoft SCORM Package works with Firefox, but not with Internet Explorer

by Moten ZHang -

update my 3rd solution -----but, it will display an HEEP 500 ERRORsad

<?php if ($some URL RULE) {echo("<meta http-equiv='X-UA-Compatible' content='IE=7' />");}?>

Change it to

<?php
$url = $_SERVER['PHP_SELF'];
$filename = basename($url,".php");
if($filename == "player"){
echo ("<meta http-equiv="x-ua-compatible" content="IE=10">");
}
?>

I get HTTP 500 ERROR, WHY?


After this, i find another(4st) solution:

it aims to change the SCORM's IE compatiblity:

find two files (index_lms.html and player.html) in the unzipped scorm package, then add the below code into their <HEAD> tag:

<meta http-equiv="x-ua-compatible" content="IE=10">


It works well!smile




Average of ratings: Useful (1)
In reply to Moten ZHang

Re: Microsoft SCORM Package works with Firefox, but not with Internet Explorer

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Moten,
your code above returns an HTTP 500 due to the incorrect use of unescaped double quotes i.e. it will work if you'll write:

echo '<meta http-equiv="x-ua-compatible" content='IE=10">';

Note: you are not required to use parentheses since echo is not actually a function, it is a language construct.

HTH,
Matteo

Average of ratings: Useful (1)
In reply to Matteo Scaramuccia

Re: Microsoft SCORM Package works with Firefox, but not with Internet Explorer

by Moten ZHang -

Hello Matteo,

It works!

Thank you very much.


So, right now, there're two ideas to reslove the issue:

  • Add the below code into the tag <HEAD>, which is in your theme's popup file(maybe not popup.php, in theme Clean, it's at ../theme/clean/layout/general.php)
    <meta http-equiv="x-ua-compatible" content='IE=8">
       If just add this line, the page of display SCORM must be open in a new window to prevent the HTML5 theme from being crashed.
       So, i add some URL rule to control this:
<?php
$url = $_SERVER['PHP_SELF'];
$filename = basename($url,".php");
if($filename == "player"){
echo ('<meta http-equiv="x-ua-compatible" content="IE=8">');
}
?>
But, maybe this solution has a potential risk: I dont' know whether there is any other module use the same name "player.php"
  • Also add the below code into the tag <HEAD>, which is in your SCORM package HTML file(index_lmss.html and player.html together control my SCORM's IE compatiblity, in some SCORM version, the index.html control it----i'm not sure this )
<meta http-equiv="x-ua-compatible" content='IE=10">


Anyway, i think i have resloved my issue, hopefully it's helpful for others.


thanks,

Average of ratings: Useful (1)
In reply to Moten ZHang

Re: Microsoft SCORM Package works with Firefox, but not with Internet Explorer

by Ron Meske -
Picture of Particularly helpful Moodlers

Hello Moten,

Just want to point out a slight error in your code.  You have unbalanced quotes around IE=8.  

You have:

<meta http-equiv="x-ua-compatible" content='IE=8">

It should be:

<meta http-equiv="x-ua-compatible" content="IE=8">
In reply to Ron Meske

Re: Microsoft SCORM Package works with Firefox, but not with Internet Explorer

by Moten ZHang -

Hello Ron,

Thank you for pointing it out


In reply to Moten ZHang

Re: Microsoft SCORM Package works with Firefox, but not with Internet Explorer

by Kelebogile Moholo -

Hi


I'm still experiencing the same problem even though I did everything you mentioned and with me my SCORM package doesn't display on all browsers, my environment is as follows:

Moodle 2.2.2

IE11

IIS7

PHP 5.3.10

SCORM Package from Captivate 8


Thanks in advance