JS Error Message for returning to main window

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?
0
Categories
- 34 ✫ Announcements
- 6 ✪ Contests
- 34K eLearning Brothers® Products
- 1 AssetLibrary™
- AssetLibrary Discussions
- 1 AssetLibrary Feature Requests
- 31 CenarioVR®
- 101 CenarioVR Discussions
- 50 CenarioVR Feature Requests
- 1 CourseMill®
- 101 CourseMill Discussions
- KnowledgeLink®
- KnowledgeLink Discussions
- KnowledgeLink Feature Requests
- 56 Lectora®
- 1K Lectora Discussions
- 1.9K Lectora Feature Requests
- 53 Lectora User Groups
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- ReviewLink®
- 21 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 1 The Training Arcade®
- 1 The Training Arcade Discussions
- The Training Arcade Feature Requests
- 7 Additional Learning Products
- 2 Adobe®
- 2 Articulate®
- 1 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 288 All Things eLearning
- 3 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 4 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 264 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 2 Visual Design
- 317 Web Accessibility
- 579 ♪ The Green Room
- 2 ♡ Community Feedback
The Big Launch - Exciting News From eLearning Brothers
eLearning Brothers is all set to rock the eLearning world in 2021, and we want to let you in on the plans! Join us for The Big Launch event, where you’ll hear from company leaders like Andrew Scivally, Co-founder and CEO, Christian Weibell, CPO, and more special guest stars. We’ve got a lot of eLearning awesomeness up our sleeve—you won’t want to miss The Big Launch.
REGISTER NOW
Comments
Is it possible to post a simple example title here?
Thanks,
Joe
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
Thank you so much, I'll go through them and will come back to you.
Yes, it worked!!! Many many thanks!