You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
I have an application which is being displayed in an iframe and I need
to call a native function from it. If I run the application not in the
iframe, the code runs. But if it is in the iframe, it doesn't.
public native void PrintTop() /*-{
alert("test");
//$wnd.PrintTop();
}-*/;
The alert shows if accessed directly, but not from within the iframe.
yes2000
unread,
Jul 11, 2011, 10:28:32 PM7/11/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Iframe means another window context.
You show invoke "window.parent.PrintTop();" instead.