Featured Categories
-
Lectora®
Lectora® is the most trusted authoring tool in the world. Rock out your creativity! Author courses any way you like. Lectora adheres to best practices for Accessibility and Web Content Accessibility Guidelines (WCAG), offers responsive authoring for eLearning, and publishes to any LMS (Learning Management System).
-
CenarioVR®
Experience virtual reality through CenarioVR®, our training and virtual reality (VR) authoring software that allows you to create immersive learning in minutes! No coding required!
-
Rockstar Learning Platform®
Our Rockstar Learning Platform® has all the features you’ll love. Help your employees be better at their jobs, more valuable to your company, and most effective in servicing your customers.
-
The Training Arcade®
Level up your learner engagement with the Training Arcade®! The Training Arcade is a library of fun, mobile-ready, casual games that can be rapidly customized with your content to create effective gaming!
-
ELB Learning Content
Did you know that our AssetLibrary™ has over 120 million engaging, interactive, and awe-inspiring templates and assets to help you become an eLearning Rockstar®?
JavaScript: Calling actions of an object on the parent page from modal window

Ideally I'd like to be able to make a call similar to....
obj1234.actionHide();
obj1234.actionShow();
etc....
I remember being able to do this relatively easily in Adobe Animate, but as in my previous posts - I am still fairly green between the ears with JavaScript and the such.
Developing content since 2010 using a mixed bag of tools.
Answers
-
CarlJFink Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 163 ♦ Idol ♦Not to short-circuit your question, but if the window is modal and you always want the button disabled when the modal window closes ... why not just have your "open the modal window" button disable that other button immediately, before opening the new window? Same effect, no JS required.
-
-
From a technical perspective, it is a modal window. In Lectora I have created a new page and then I open it as a modal.
However, I have dug a bit deeper and forgot to post before heading on vacation that I tried the below and it worked OK...
parent.functionName();
parent.runGroup_og1234();Andrew R.
Developing content since 2010 using a mixed bag of tools. -
CarlJFink Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 163 ♦ Idol ♦
A "modal" window is one that blocks the original window, so you can't interact with it until you close the new window. For instance, if you click a "close" button without saving first, many programs cause a confirmation window to appear, and you can't click on or interact with the original window until you either click "Save" or "Close without saving".timk said:From a technical perspective: What is that modal window? A new browser window?
Categories
- 35.9K All Categories
- 110 ✫ Announcements
- 33.2K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 346 CenarioVR®
- 205 CenarioVR Discussions
- 141 CenarioVR Feature Requests
- 44 Rockstar Learning Platform®
- 41 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 48 ReviewLink®
- 48 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 938 All Things eLearning
- 39 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products