6

Busy debugging a strange issue relating to the way some Flash content communicates a user's progress from a SCORM module back to Moodle.

On IE 6, 7, 8, 9, Chrome and Firefox, everything works fine. On IE 10, progress tracking from the Flash module is not reaching the server.

In the SCORM launcher, an event handler is created using the following (ancient) code:

<SCRIPT LANGUAGE="VBScript">
on error resume next
sub preloader_FSCommand(ByVal command, ByVal args)
 call preloader_DoFSCommand(command, args)
end sub
</SCRIPT>

Debugging on Chrome, I can see that the function is called as expected.

Attempting to debug in IE 10 fails, as the code is never called. How would I translate this code to Javascript? Trying to remove the VBScript as it appears to be part of the problem. I tried the following code, without success:

<script>
 function preloader_FSCommand (command, args) {
 preloader_DoFSCommand(command, args);
 }
</script>

preloader_DoFSCommand is defined elsewhere in code, and is called just fine on Chrome/Firefox/etc, but not on IE 10.

Update: Seems that part of the problem is related to IE 10 no longer supporting FSCommand in standards mode. Question now becomes, what would be a suitable workaround, which does not require the Flash/SCORM content to change?

asked Mar 14, 2013 at 0:41
2
  • Try to force IE10 into IE9 compatibility mode with the following in your '<head>': <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" /> Commented Mar 14, 2013 at 3:05
  • That solves it - thanks! Feel free to move it to answer and I'll mark it as accepted. Commented Mar 14, 2013 at 15:02

2 Answers 2

3

Try to force IE10 into IE9 compatibility mode with the following in your <head>: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />

answered Mar 14, 2013 at 15:13

Comments

0

A Javascript way of effecting the same communication with Flash would be to use the following:

<script type="text/javascript" event="FSCommand(command,args)" for="preloader">
 preloader_DoFSCommand(command,args);
</script>
answered Jan 14, 2014 at 16:07

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.