Eclipse hosted mode in Facebook iframe

96 views
Skip to first unread message

Peter

unread,
Jun 21, 2011, 10:12:46 AM6/21/11
to Google Web Toolkit
Hi,

We're developing a Facebook app with GWT but can't get the hosted mode
in Eclipse to work inside Facebook's iframe. Have anyone got this
working? It would make it simpler to debug some issues.

We've tried using the dev plugins for Firefox 4, Explorer 7 and Chrome
12. Firefox and Explorer only shows the last cached, GWT compiled
page. Chrome says "Plugin failed to connect to Development Mode
server...".

We've tried adding "gwt.codesvr=127.0.0.1:9997" to both the iframe URL
and to the top window URL.

Anyone else who's made a Facebook app with GWT, please make a comment.

mohamed salah

unread,
Jun 21, 2011, 11:55:51 AM6/21/11
to google-we...@googlegroups.com

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
salam : peter
Resolved issus
this.frame.setUrl(GWT.getHostPageBaseURL() + "path");
thanks :mohammad salah
------------------------------------------


Regard: Mohamed salah hasan
Mobile :+20106594094
tel     :+2024460320


Peter

unread,
Jun 22, 2011, 1:35:46 AM6/22/11
to google-we...@googlegroups.com
I think you misunderstood. We don't want to create an iframe in GWT code. Our GWT page is loaded in an iframe. The URL of the iframe is "http://127.0.0.1:8888/Page.html?gwt.codesvr=127.0.0.1:9997". But this doesn't work with the development mode in Eclipse.

A. Stevko

unread,
Jun 22, 2011, 2:10:35 AM6/22/11
to google-we...@googlegroups.com
I answered this question at stackoverflow

As it is, you cannot use 127.0.0.1 as the url hostname  for your facebook app - you'll have to use a dns hostname pointing to the public ip address of your computer. 

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M. Andretti





Peter

unread,
Jun 22, 2011, 2:47:06 AM6/22/11
to google-we...@googlegroups.com
Thanks! Editing the hosted.html file works. I can also use 127.0.0.1 in the iframe URL, but then I haven't enabled any cross-site request forgery measures.
Reply all
Reply to author
Forward
0 new messages