Well, the first test eas a complete success !!!
How to detect if your GWT is into an iframe
/*
Returns TRUE if the app is running inside a iframe
*/
private static native boolean inIframe() /*-{
return $wnd.top != $wnd;
}-*/;
On 2 feb, 17:18, Jan Mostert <[email protected]> wrote:
> One of my apps is running on facebook, facebook uses an iFrame to display
> the application (if you're not using FBML), so yes, it does work.
>
> On Wed, Feb 2, 2011 at 6:02 PM, aditya sanas <[email protected]>wrote:
>
> > hi,
> > yeah ofcourse it will work
> > i have implemented it in my projects but you might require to check browser
> > compatibility for frame size and some minor changes
> > but this works for sure.
> > --
> > Aditya
>
> > On Wed, Feb 2, 2011 at 9:20 PM, obesga <[email protected]> wrote:
>
> >> Hello
>
> >> I've done a GWT app which is running on it's own page; but I've a
> >> request to embed the page into a portal.
> >> As I need to get the job done ASAP; I'm thinking about embedding the
> >> GWT weapp into a iframe, as
>
> >> <iframe src="app/myapp.html"></iframe>
>
> >> Would it work ?
> >> Can a GWT app detect when it's running on a top page or on a iframe ?
>
> >> Thanks
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<google-web-toolkit%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.