Questions tagged [postmessage]
The window.postMessage() method safely enables cross-origin communication between Window objects; e.g., between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.
895
questions
2
votes
0
answers
39
views
Cross domain window.postMessage from child to parent in an iframe?
I have a parent window embedded in an iframe that opens up a child window on a button click. This is for a different domain. I need to figure out how to communicate from the child window so I can ...
0
votes
0
answers
43
views
mfc worker thread needs to wake UI to run multiple functions
My UI creates a file extracts the data into a global vector and closes the file. The UI then runs a worker thread and becomes idle waiting for user or worker actions. The worker thread works on the ...
0
votes
1
answer
105
views
Are there any functions like SendMessage() or SendMessageTimeout() that goes through the message queue instead of calling the windows procedure?
Essentially, I'm looking for a function like PostMessage() that would be synchronous, so it doesn't return until the message has been processed. It doesn't necessarily have to be a function that does ...
0
votes
1
answer
76
views
How to identify or to postMessage to a cross-origin <embed> element after redirection
I'm using a Chrome extension using MV3 to convert every frame to a shadow-root (to put inline their content), I need this because I cannot copy and paste iframe/embed/object frames from the browser to ...
0
votes
0
answers
41
views
Getting x-Frame-Options as deny error when opening url in iframe
I have two env's lets say local and PROD . I am trying to open PROD url as iframe on local url.
Both are react js urls frontend.
Purpose is to transfer data from one application to another using ...
0
votes
1
answer
74
views
iframe.contentWindow.postMessage not working in incognito mode
I have a widget script (widget.js) deployed on an AWS S3 bucket. This script creates an iframe with its src set to http://localhost:5000.
I embedded widget.js using script tag in my web app. Once the ...
1
vote
1
answer
30
views
JS - Passing SessionStorage variable from Parent page to iFrame Popup? - cross domain
This is in JavaScript. I am looking to pass a variable that is saved in SessionStorage on the Parent page (domain https://parent.com/) to an iframe Popup that loads after 10 seconds (domain https://...
0
votes
0
answers
22
views
How to transfer data from one origin to another in React
I have two environments UAT and PROD , I want to transfer data from one environment to another.
My data contains xml file and one object containing some information
data = {xml , flowData:{flowName}}
...
0
votes
0
answers
17
views
Simulation of click on a toolbar in another program c#
I want open dialog in another program (ezcad) using sendMessage in c# (
it must be in the background).
manual dialog opening options:
ctrl + H (no working via postMessage)
click button in toolbar (...
0
votes
1
answer
29
views
webix postMessage on iframe never reaches embedded drawio
Basically, the backend provides me with the content of drawio files (so we are talking xml mode) and I need to display this in our webix page.
So far, I have tried to achieve this using an iframe, ...
0
votes
0
answers
25
views
I cant call on a parent function from my iframe on the same domain
I'm sorry to ask what seems like the same question again.
From my previous question, I set up a live server in visual studio and have opened the count.html via the live server.
in my iframe's <...
0
votes
0
answers
72
views
window.postMessage throws undefined error even though I checked that it is not undefined
I have a React webapp running inside a webview in a React Native app. The React Native side injects javascript to set window.postMessage like so:
<WebView
injectedJavaScriptBeforeContentLoaded={`
...
0
votes
0
answers
75
views
Facebook Login OAuth Flow without SDK
When I use the connect.facebook.net/en_US/sdk.js and call FB.login() I get a login/auth popup window. When someone logs in, the window closes, and the callback function supplied to FB.login is called ...
0
votes
0
answers
30
views
How to check if object is Transferable?
I have written this function to get all transferable elements of an Object — and to get them without duplicates, so the list can actually be used with postMessage().
It includes a check against a ...
0
votes
1
answer
28
views
Zoho PostMessage API returns 1108 Domain not registered
I'm using postMessage API to post a save command to my Zoho writer iframe. Following the docs I have this
XDC.setTarget({
"origin": "https://api.office-integrator....