Calling gwt static method from parent of iframe
- by Richard Wallis
I'd like to know how to call a GWT static method from the parent of the iframe in which the gwt module is loaded.
As a simple example suppose I have the following gwt class:
public class Simple {
public static void showWindow() {
Window.alert("Hello from the iframe");
}
}
I create an html host page called "iFrameHost.html" that can run the function above. Then in an unrelated GWT module on a different page I call:
Frame iFrame = new Frame("iFrameHost.html");
RootPanel.get().add(iFrame);
How do I now call the showWindow() method from the parent page?