Close window in LMS with javascript
November 18, 2014 12:00 AM
Hi
We have a customer which LMS plays all the courses in same window. The normal Exit/Close Action works, but it resets the course in the LMS and that is not what we want :)
I have tried these javascript options:
javascript:self.close() "Nothig happens"
javascript:window.self.close() "Shut down the whole LMS"
Don´t know what to try next :( Any help?
Thanks.
Discussion (7)
@ummakumma 62535 wrote:
Hi
We have a customer which LMS plays all the courses in same window. The normal Exit/Close Action works, but it resets the course in the LMS and that is not what we want :)
I have tried these javascript options:
javascript:self.close() "Nothig happens"
javascript:window.self.close() "Shut down the whole LMS"
Don´t know what to try next :( Any help?
Thanks.
Hi,
What format SCORM 1.2, SCORM 2004, AICC? Sounds like a communications issue. Get a log of the communications to and from the course. Sounds like the LMS is expecting something that the course isn't giving or the LMS is getting something that it isn't expecting. Hard to tell without the log.
-kelly
Hmmm. What do you want to happen? i.e what do you want to show when the learner exits from the course?
@mallow76 62579 wrote:
Does your Lectora course have the 'Launch course in separate window' checkbox unchecked in the SCORM publish options? If the course is to play within the LMS window then it should be unchecked and that should be enough for things to operate correctly when the user exits the course.
If it is unchecked then i'm not sure what the problem is. Worth asking the LMS vendor how other courses are set up.
Yes. I have tried both of these publish options with all of these previously mentioned javascript functions.
Does your Lectora course have the 'Launch course in separate window' checkbox unchecked in the SCORM publish options? If the course is to play within the LMS window then it should be unchecked and that should be enough for things to operate correctly when the user exits the course.
If it is unchecked then i'm not sure what the problem is. Worth asking the LMS vendor how other courses are set up.
Here is Tip#164 from my Lectora 201 book (What they don't tell you in class).
Close Button Does Not Close Window Properly.Make sure you have the publish option “The published course will be presented in a separate window than the LMS” checked. Close Button
In some cases the above does not work. If that happens to you, try this:
Add another action to the Exit button with:
On: Mouse Click
Action: Go To
Target: Web Address
Value: Javascript: top.window.close()
Thanks to Mallow76 of the UK
A recent tip from the Lectora forum by Tecocat was to "make sure that in your Publish options, you check the option that says ‘Published Content will be Presented in a Separate window than the LMS.’ This will enable you to use the Exit Title action in Lectora when publishing to SCORM."
@benpitman 62568 wrote:
Here is Tip#164 from my Lectora 201 book (What they don't tell you in class).
Close Button Does Not Close Window Properly.Make sure you have the publish option “The published course will be presented in a separate window than the LMS” checked. Close Button
In some cases the above does not work. If that happens to you, try this:
Add another action to the Exit button with:
On: Mouse Click
Action: Go To
Target: Web Address
Value: Javascript: top.window.close()
Thanks to Mallow76 of the UK
A recent tip from the Lectora forum by Tecocat was to "make sure that in your Publish options, you check the option that says ‘Published Content will be Presented in a Separate window than the LMS.’ This will enable you to use the Exit Title action in Lectora when publishing to SCORM."
Thanks but this didn´t help. In this case that script closed the whole LMS :(
Hi,
We still need to know what format your course is using, SCORM, AICC? Have you been able to get the log file to see what is being communicated from the course to the LMS?
Does your course work on other LMSs or even the SCORM Cloud for testing?
-kelly
Discussions have been disabled for this post