Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-10425

SCORM module firefox problems

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6, 1.7, 1.8, 1.9
    • 1.8.7, 1.9.3, 2.0
    • SCORM
    • None
    • Firefox
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

    Description

      Because of the way FF treats Strings (IE casts a result to the right type), Firefox doesn't always work with SCORM packages, ie. scores are not stored.
      I suggest the culprit is the code:

      elementmodel = element.replace(expression,'.n.');

      in the various datamodel files, for example there are 4 occurrences in scorm_12.js.php.
      Replacing this with

      elementmodel = String(element).replace(expression,'.n.');

      makes it "Firefox-compliant"

      This is the case for moodle 1.6 through 1.8.

      I suggest we make this change to the code, as it surely doesn't affect compatibility with IE.

      Attachments

        Activity

          People

            piers Piers Harding
            bokhove2 Christian Bokhove
            Christian Bokhove Christian Bokhove
            Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/Oct/08