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

Refresh the parent window once a SCORM in popup is closed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.3
    • Fix Version/s: 2.6.3
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide

      Create a SCORM package in your course and test with the following settings - enter each SCORM as a student.
      This should be tested against Multiple browsers with pop-up blockers turned off.

      1. Test 1
        Use the following settings:
        • Display package: New Window
        • Student skip content structure: Always
          Enter the SCORM as a student (not admin/teacher)
          Make sure popup is generated, check parent window text is replaced with "this SCORM package has been launched in a popup window, If you have finished viewing this resource, click here to return to the course page" then when pop-up window is closed parent window should automatically redirect to couse/view.php
      2. Test 2
        Use the following settings:
        • Display package: New Window
        • Student skip content structure: First Access
          Enter the SCORM as a student (not admin/teacher)
          On first entry it should open popup, check parent window text is replaced with "this SCORM package has been launched in a popup window, If you have finished viewing this resource, click here to return to the course page" then when pop-up window is closed parent window should automatically redirect to couse/view.php - complete this entry by answering all questions correctly.
          On second entry (If first entry was completed) it should display scorm/view.php to student with form to allow entry, then when entering course it should launch pop-up and replace the text on view.php parent window with "this SCORM package has been launched in a popup window, If you have finished viewing this resource, click here to return to the course page" then when pop-up window is closed it should automatically redirect parent window to course/view.php
      1. Test 3
        Use the following settings:
        • Display package: New Window
        • Student skip content structure: Never
          On entry it should load mod/scorm/view.php, click enter to open pop-up and it should launch pop-up and replace the text on view.php parent window with "this SCORM package has been launched in a popup window, If you have finished viewing this resource, click here to return to the course page" then when pop-up window is closed it should automatically redirect parent window to course/view.php
      1. Test 4
        Re-test the Tests 2-3 using the single activity course format. (Test 1 above should not be possible using the UI as always skip option is removed from UI when using single activity course format)
      1. Test 5
        Enable a pop-up blocker in your browser (please specifically test Chrome but other browsers would be good too)
        Use the following settings:
        • Display package: New Window
        • Student skip content structure: Always
          Enter the SCORM as a student (not admin/teacher)
          When pop-up is blocked, check parent window text is replaced with "It appears that popup windows are blocked, stopping this SCORM package from playing. Please check your browser settings before trying again"

      NOTE 1: when skipview is not used, the pop-up is initiated on the view.php by user action so the pop-up blocker won't usually block the pop-up in this state.

      NOTE 2: The skipview setting only applies to students - if skipview is set and a teacher/admin is logged in it reacts as if skipview is set to never - this is historically because the view.php page was the only navigation point to allow a teacher to access SCORM reports.

      Show
      Create a SCORM package in your course and test with the following settings - enter each SCORM as a student. This should be tested against Multiple browsers with pop-up blockers turned off. Test 1 Use the following settings: Display package: New Window Student skip content structure: Always Enter the SCORM as a student (not admin/teacher) Make sure popup is generated, check parent window text is replaced with "this SCORM package has been launched in a popup window, If you have finished viewing this resource, click here to return to the course page" then when pop-up window is closed parent window should automatically redirect to couse/view.php Test 2 Use the following settings: Display package: New Window Student skip content structure: First Access Enter the SCORM as a student (not admin/teacher) On first entry it should open popup, check parent window text is replaced with "this SCORM package has been launched in a popup window, If you have finished viewing this resource, click here to return to the course page" then when pop-up window is closed parent window should automatically redirect to couse/view.php - complete this entry by answering all questions correctly. On second entry (If first entry was completed) it should display scorm/view.php to student with form to allow entry, then when entering course it should launch pop-up and replace the text on view.php parent window with "this SCORM package has been launched in a popup window, If you have finished viewing this resource, click here to return to the course page" then when pop-up window is closed it should automatically redirect parent window to course/view.php Test 3 Use the following settings: Display package: New Window Student skip content structure: Never On entry it should load mod/scorm/view.php, click enter to open pop-up and it should launch pop-up and replace the text on view.php parent window with "this SCORM package has been launched in a popup window, If you have finished viewing this resource, click here to return to the course page" then when pop-up window is closed it should automatically redirect parent window to course/view.php Test 4 Re-test the Tests 2-3 using the single activity course format. (Test 1 above should not be possible using the UI as always skip option is removed from UI when using single activity course format) Test 5 Enable a pop-up blocker in your browser (please specifically test Chrome but other browsers would be good too) Use the following settings: Display package: New Window Student skip content structure: Always Enter the SCORM as a student (not admin/teacher) When pop-up is blocked, check parent window text is replaced with "It appears that popup windows are blocked, stopping this SCORM package from playing. Please check your browser settings before trying again" NOTE 1: when skipview is not used, the pop-up is initiated on the view.php by user action so the pop-up blocker won't usually block the pop-up in this state. NOTE 2: The skipview setting only applies to students - if skipview is set and a teacher/admin is logged in it reacts as if skipview is set to never - this is historically because the view.php page was the only navigation point to allow a teacher to access SCORM reports.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      master_MDL-43247

      Description

      When SCORM is set to open in a new window, when the window is closed it shows the content structure page underneath or the course homepage if skip content structure view is used. (as that is the page that launched the pop-up) - we should trigger a refresh when the window is closed to update the status shown on the page - so that any grades or completion information is updated.

      my post url for this issue is: https://moodle.org/mod/forum/discuss.php?d=245255
      also another person having problems, see post: https://moodle.org/mod/forum/discuss.php?d=233476

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14