Category: UI Widgets
Updated

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

Accessing JavaScript function written inside an iFrame

Issue

As a web developer, I am having trouble accessing a javascript function inside an iframe from a button onClick event on my main page. I wrote an HTML code with a table and a getCellData() function inside the iframe, but when I call the function from the button, it doesn't work. Unfortunately, I am unable to solve this problem.

Resolution

Unfortunately, the current solution (using an iFrame and attempting to call a Javascript function from the parent container) is not possible without additional features (i.e. window.postMessage). Once that feature is implemented, communication between the parent container and the iFrame will enable the implementation of this solution.