JS Error Message for returning to main window

tmichael9734tmichael9734 Community Member Posts: 93
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?

Comments

  • wheelswheels Administrator Posts: 476 eLearning ROCKSTAR Admin Team
    Hi Therese (@tmichael9734)

    Is it possible to post a simple example title here?

    Thanks,
    Joe
  • wheelswheels Administrator Posts: 476 eLearning ROCKSTAR Admin Team
    Hi 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
  • timktimk Community Member Posts: 1,139 ✶ Headliner ✶
    Maybe there is no "opener" any more if you close the window before the group is run. You could try to run the group first.
  • tmichael9734tmichael9734 Community Member Posts: 93
    I'm so sorry Joe and Tim, I just saw your responses now.  I don't know why I didn't get the notification.

    Thank you so much, I'll go through them and will come back to you.

     
  • tmichael9734tmichael9734 Community Member Posts: 93
    Hi Joe again,

    Yes, it worked!!! Many many thanks!
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!

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