Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow messaging to & from the iFrame's internal window #13

Open
omrid01 opened this issue Oct 1, 2024 · 0 comments
Open

Allow messaging to & from the iFrame's internal window #13

omrid01 opened this issue Oct 1, 2024 · 0 comments
Labels
feature-request New feature or request that needs to be turned into Epic/Story details needs-triage Needs looking at to decide what to do

Comments

@omrid01
Copy link

omrid01 commented Oct 1, 2024

Description

I the predecessor (Dashboard 1.0) iFrame node, when sending msg.payload to the node it would stringify & post it to the internal window. for example, when playing a YouTube video in the iFrame, you could control it with messages such as:

msg.payload = {
   event: "command",
   func: "pauseVideo",
   args: []
}

This was done as follows:
iframe.contentWindow.postMessage(JSON.stringify(msg.payload), origin);

It would be good to have this functionality here too. Also, would be good to add listener and an output port and, and support receiving messages from the iFrame's internal window,

Have you provided an initial effort estimate for this issue?

I can not provide an initial effort estimate

@omrid01 omrid01 added feature-request New feature or request that needs to be turned into Epic/Story details needs-triage Needs looking at to decide what to do labels Oct 1, 2024
@omrid01 omrid01 changed the title Allow messaging to & from the internal iFrame Allow messaging to & from the iFrame's internal window Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request that needs to be turned into Epic/Story details needs-triage Needs looking at to decide what to do
Projects
None yet
Development

No branches or pull requests

1 participant