1/9/2023 0 Comments Iframe postmessage![]() I am having a lot of trouble accomplishing this. The window. If you control both, it's much easier and this example will cover such use-case. data that is sent over those messages needs to be serialized it's tricky to start communication because most of the time your aren't sure what loaded first: main window or an iframe. PS: I know it is probably best to avoid iFrames, however for the purpose of my application, this is necessary to use. ![]() ![]() I must accomplish it in this way using postMessage(). I am having a lot of trouble accomplishing this. It’s a lot like Ajax but with cross-domain capability. Then, I want to show an iFrame of the localhost:8000/(someid) in the localhost:3000 page. main window and an iframe can exchange data using postMessages. Then, I want to show an iFrame of the localhost:8000/(someid) in the localhost:3000 page. ![]() Did you take a look into the VELO-API-Docs? /* * * * * * * * * * * * * * * * * * * * * * * * * * Paste the following into the HTML Component: * * * * * * * * * * * * * * * * * * * * * * * * * * function init () Įxpand your code inside your HTML-Component, like shown in the EXAMPLE. PostMessage () is a global method that safely enables cross-origin communication. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |