For a reasons too long to explain here, my app is currently getting deployed in an iframe. I need to use JSNI to set up a JavaScript callback into my application. Both the iframe and the enclosing doc are loaded from the the same docbase, so there should be no security issues.
private native void publish(MyWidget widget) /*-{ $wnd.<insert-the-right-thing-here>.myFunction = widg...@com.myco.myapp::myMethod()(); }-*/; I am wondering what should go in <insert-the-right-thing-here>. I tried parent, parent.window - but I am no JS expert. Thanks in advance! BR --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---