JavaScript to close window if parent window has been closed

Feb 15, 2018

Hi there, I am looking for some JavaScript assistance.  

Our LMS automatically opens the course in a new window, despite what boxes are checked in Storyline.  I am looking for code that will detect if the parent window (launch window in the LMS) is closed and, if so, the course window closes as well. 

I have tried to use the window.opener.closed function to assign the true/false response to a variable, I have tried to just run the window.opener.closed function with an if/else statement to pop up an alert and still nothing. 

Does anyone have an idea or guidance to help get this to work?

    

 

5 Replies
Lena C.

We do not have access to the LMS source code.  The LMS is SuccessFactors and the SAP engineering team keeps putting the ball back in our court to adjust the content to pop up any warning messages, check for network connections, etc.  

We are experiencing hundreds of users whose courses will not mark complete and have identified that they are either on CITRIX or are experiencing network connection interruptions that sever the connection between course window and LMS launch window.   

If they close the launch window, the course continues to play through and look as though they finished, but the data is never sent back to the LMS due to the close of that window.  I am looking for a way to auto-close the course window if a user closes the launch page.  Might not be possible, but thought I would ask the community of heroes.  

Tobias Keating

Just in case someone else stumbles onto this thread while looking for solutions...

We were having similar issues with the network connection being lost when using the SuccessFactors LMS and after much testing we identified that it was caused by the contentStructurePageKeepAliveInterval setting that can be found in System Admin > System configuration > LMS admin.

This discussion is closed. You can start a new discussion or contact Articulate Support.