Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-2832

JavaScript error dialog sometimes appears when previewing a question within Word and using a Windows webserver

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9.9
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows web server (e.g. WAMPServer or XAMPP)
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      The Preview facility within Word uploads a Word file and inserts the current question into a temporary question in the database, then redirects to the Preview question page (e.g. http://localhost/moodle/question/preview.php?id=1&courseid=2). This page includes JavaScript to check the Flash version (/lib/swfobject/swfobject.js). For some reason this script causes the in-dialog browser component to display an error message ("Error: 'swfobject' is undefined", URL: about:blank).

      However, the question preview is displayed OK after clearing the error.

        Attachments

          Activity

            People

            Assignee:
            campbeeo@tcd.ie Eoin Campbell
            Reporter:
            campbeeo@tcd.ie Eoin Campbell
            Participants:
            Component watchers:
            Eoin Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: