SCP Era Players not tracking data in new browsers



When using the oldest version of the SCORM Engine, you may encounter issues where some of the later (non-IE) browsers like Firefox are not tracking and commiting data after first launch of the content. This can be solved by changing some lines of script relating to LMSCommit.
The fix was made in the 'Scorm-DeliverSCO.aspx' file. We upgraded a section of code that used vbscript to write data back to our LMS and upgraded with the code below.
This has been checked so far with IE6+, Firefox, Opera and Safari.
New script below...

                WriteToDebug("Trying to create Microsoft.XMLHTTP in javascript")

                if (window.XMLHttpRequest){
                                objXMLHTTP = new XMLHttpRequest();
                } else if (window.ActiveXObject){ 
                               XMLHttpRequest2 = function() {
                                                                                try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }
                                                                                                catch(e) {}
                                                                                try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }
                                                                                                catch(e) {}
                                                                                try { return new ActiveXObject("Msxml2.XMLHTTP"); }
                                                                                                catch(e) {}
                                                                                try { return new ActiveXObject("Microsoft.XMLHTTP"); }
                                                                                                catch(e) {}
                                                                                throw new Error("This browser does not support XMLHttpRequest.");
                                objXMLHTTP = XMLHttpRequest2();

                if (objXMLHTTP == null){
                                WriteToDebug("ERROR Trying to create Microsoft.XMLHTTP in javascript");
                                alert("ERROR - Could not establish communications with the LMS. You may be using an old browser." );


As with any changes, please make sure you back up your existing files in case you need to shuffle those files back into production.


Thank you,




Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk