JS Error Message for returning to main window

tmichael9734
Community Member Posts: 145 ♪ Opening Act ♪
Hi Everyone,
I’m using L18 desktop version and I’ve a video playing in a pop-up window and I’m trying to return to the main screen after it’s done playing. I’m using these actions on the video:
On Done Playing: Exit/Close Window
On Hide: RunJS: opener. runGroup_og139946();
But when I preview it, I get the attached message. I’ve used this method before and it worked fine, but I don’t know why it is not working any more. I tested it in Chrome and Edge with no luck. Did I do something wrong?
I’m using L18 desktop version and I’ve a video playing in a pop-up window and I’m trying to return to the main screen after it’s done playing. I’m using these actions on the video:
On Done Playing: Exit/Close Window
On Hide: RunJS: opener. runGroup_og139946();
But when I preview it, I get the attached message. I’ve used this method before and it worked fine, but I don’t know why it is not working any more. I tested it in Chrome and Edge with no luck. Did I do something wrong?
Comments
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 665 eLearning ROCKSTAR Admin Team
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 665 eLearning ROCKSTAR Admin TeamHi Therese (@tmichael9734)
Here is another alternative:
Create a variable, say, ReturnToPage and create it so it is initially false.
Then on the main page add a Timed Interval action that would Run the Action Group when the condition ReturnToPage is equal to true. Setting that to run every 1 seconds should work fine.
Then you could have these actions on your video:
On Done Playing: Modify Variable Set ReturnToPage equal to true
On Done Playing: Exit/Close Window
And in the Action Group that gets run put this action at the beginning (so the Action Group isn't run again):
Modify Variable Set ReturnToPage equal to false
For other pages where you have this similar situation you should be able to reuse that same variable.
Hope this helps!
Joe -
-
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products