g:frame doesn't work with external link

774 views
Skip to first unread message

mars

unread,
Jan 2, 2012, 3:03:09 PM1/2/12
to Google Web Toolkit
i have gwt app, and one of the 'page'(or display) has a iframe whose
url point to google web page, however when deploy the app, google page
doesn't show up. here is the code

<g:HTMLPanel styleName="{style.ctntBox}">
<div id="contactForm">
<g:Frame url="http://www.google.com/"></g:Frame>
</div>
</g:HTMLPanel>

if i replace the google webpage with a static image stored locally, it
show up fine:

<g:HTMLPanel styleName="{style.ctntBox}">
<div id="contactForm">
<g:Image url="img/myImg.jpg"></g:Image>
</div>
</g:HTMLPanel>

can anyone tell me why it won't work with external link? Thanks

Jens

unread,
Jan 2, 2012, 4:08:19 PM1/2/12
to google-we...@googlegroups.com
Are you sure that your <g:Frame> has a correct size > 0? Try adding a specific width/height.

-- J.

Thomas Broyer

unread,
Jan 3, 2012, 4:13:39 AM1/3/12
to google-we...@googlegroups.com
Google refuses to be displayed in a frame using the X-Frame-Options HTTP header.
Reply all
Reply to author
Forward
0 new messages