Re: WebBrowser vs IFrame

2021-02-23 Thread Piotr Zarzycki
Bill, This is the case exactly! I catch myself many times with the Flex way of thinking, but HTML/JS world is very different. :) Thanks, Piotr wt., 23 lut 2021 o 19:53 Bilbosax napisał(a): > Harbs, this worked brilliantly! My problem is solved. Thank you for your > feedback. > > With

Re: WebBrowser vs IFrame

2021-02-23 Thread Bilbosax
Harbs, this worked brilliantly! My problem is solved. Thank you for your feedback. With Royale, I think I need to stop thinking so much like a Flex developer and realize that this all HTML/Javascript/CSS in the end. I am just so used to the constructs of Flex after all of these years.

Re: WebBrowser vs IFrame

2021-02-23 Thread Harbs
The issue is that you’re attaching the event listener to the component or the element. postMessage is always fired on a Window object and you need to listen to the Window you are posting the message to. If you are in an iframe, window.parent is the immediate parent Window which holds the

Re: WebBrowser vs IFrame

2021-02-22 Thread Harbs
The way you communicate between iframes and their parent windows in Javascript is by using postMessage.[1] We don’t have any code which wraps that, but there’s no reason why you can’t use the postMessage APIs directly. You’d do something like this: window["top"]["postMessage"]("foobaz",'*');

WebBrowser vs IFrame

2021-02-21 Thread Bilbosax
I have come to the final part of my app development that I have feared the most. I will have a lot of questions about this because I am so in the dark, so here it goes. I need a Google Map in my Royale project. In Flex, this was done with an ANE or in the older days with StageWebView. You