moodle 2.5 does not refresh the "content structure page"

moodle 2.5 does not refresh the "content structure page"

by julie prescott -
Number of replies: 3

Moodle 2.5.3 (Build: 20131111)

Hi, my new version of moodle (above) does not refresh the content structure page after my scorm package has been closed.  Our scorm package opens up in a new window, when it is closed it records the score correctly but you have to manually refresh the screen to view the attempt and scores recorded.  Also I have found that Chrome is different to Firefox as described below...

steps:

launch the scorm package using the Enter button displayed on http://mysite/lms25/mod/scorm/view.php

In chrome: http://mysite/lms25/mod/scorm/view.php page stays open in the main browser window and the scorm package opens in a new popup window.  When the popup window is closed the main browser window remains the same.

In firefox: http://mysite/lms25/course/view.php opens in the main browser window and the scorm package opens in a new popup window. When the popup window is closed the main browser window remains the same.

 

We have another moodle lms using version 2.2 and this works great. What happens in this lms is:

launch the scorm package on http://mysite/lms22/mod/scorm/view.php 

in both Chrome and Firefox: http://mysite/lms22/mod/scorm/player.php page opens in the main browser window and the scorm package opens in a new popup window.

I have been reading up on this new version and I see that there have been some significant changes to the code in this area to help with pop-up blockers.  However, this is really an issue which I feel needs some attention as the new changes seem to have broken the functionality somehow.  I have tried to resolve this myself by implementing some script to refresh the window using the window.open API to get it to display the new scores but I can not get it to work correctly. I have also searched for a patch to fix this issue but can not find one. Anyone have any ideas how this problem can be resolved?

I hope I've given enough information for someone to help (and I hope Ive made sense!).  Deadlines are approaching and to back-grade this lms down to 2.2 is not something I really want to have to do.

Thanks in advance for any suggestions.

Julie

 

Average of ratings: -
In reply to julie prescott

Re: moodle 2.5 does not refresh the "content structure page"

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

downgrading to 2.2 will cause a number of other SCORM issues - esp with more modern browsers like IE 11.

refreshing that page after closing scorm is something I've wanted to do for a while but finding the time and/or someone willing to fund the time to work on it isn't always easy.

I thought there was an open bug in the tracker for this - I know I've mentioned it in the forums before but I can't see an open bug - feel free to create one. I'm always happy to review patches from other developers so you could contract your local Moodle Partner to do the work (or drop me an e-mail and I can provide an estimate)

In reply to Dan Marsden

Re: moodle 2.5 does not refresh the "content structure page"

by julie prescott -

Thanks for your help Dan.  I will log it in the tracker but will continue to resolve this issue and will share if I can come up with a solution.

Julie

In reply to julie prescott

Re: moodle 2.5 does not refresh the "content structure page"

by Joe Hastings -

As a solution I am trying to run the course in the same window, then use the final button in the course to trigger some javascript instead which triggers the exit activity button in moodle. I have the javascript working so that if I put it in the dev console in chrome it works and returns to the course pathway screen. 

My issue now is that if I put this code inside the SCORM activity it does nothing, I am guessing this is because the javascript from the SCORM activity cannot see the html attributes of the page itself. Does anyone know of a way of accessing these attributes? My javascript currently searches the page for the div that the exit activity button is on and clicks it.