[gwt-contrib] Re: CSS Resources are not set in Panels in an iframe

2016-01-08 Thread confile
I could extend the CrossSiteIframeLinker and change: L413: out.print("var $wnd = $wnd || window.parent;"); to out.print("var $wnd = $wnd || document.getElementById("myiframe");"); But what do you mean by "an iframe created during "bootstrap"? Where do I create the iframe? Am

Re: [gwt-contrib] Re: CSS Resources are not set in Panels in an iframe

2016-01-08 Thread Colin Alworth
As long as both $wnd and $doc exist in the frame where you plan on creating/rendering widgets, it shouldn't matter how you create or find the iframe. This should only mean that your frame must be created when that line of bootstrap code executes, either because you created it there, or because you

Re: [gwt-contrib] Re: CSS Resources are not set in Panels in an iframe

2016-01-08 Thread confile
@Colin, I did not get your point how would you generate a GWT app inside: // GWT app Am Freitag, 8. Januar 2016 20:28:50 UTC+1 schrieb Colin Alworth: > > As long as both $wnd and $doc exist in the frame where you plan on > creating/rendering widgets, it shouldn't matter how you

[gwt-contrib] Re: CSS Resources are not set in Panels in an iframe

2016-01-08 Thread confile
Here is what I want to do with GWT. https://perishablepress.com/embed-external-content-via-iframe-and-div/ Any idea how to do that? Am Dienstag, 5. Januar 2016 18:40:28 UTC+1 schrieb Thomas Broyer: > > Ideally, probably use a custom linker that makes it so that $wnd and $doc > point to an

[gwt-contrib] Re: CSS Resources are not set in Panels in an iframe

2016-01-05 Thread Thomas Broyer
On Monday, January 4, 2016 at 8:31:56 PM UTC+1, confile wrote: > > I want to insert GWT Widgets like FlowPanel, HTMLPanel inside and iframe > using GWT. > TL;DR: you can't. > I find out how to insert GWT Widgets and Panels programmatically into GWT. > Here is how I do it: > > > public

[gwt-contrib] Re: CSS Resources are not set in Panels in an iframe

2016-01-05 Thread Grzegorz Nowak
According to this 'ensureInjected' uses StyleInjector.injectStylesheet(String) to inject the text of the style into head of $doc. You would have to manually inject it (Use

[gwt-contrib] Re: CSS Resources are not set in Panels in an iframe

2016-01-05 Thread confile
Do you have an example for a custom linker? Am Dienstag, 5. Januar 2016 18:40:28 UTC+1 schrieb Thomas Broyer: > > Ideally, probably use a custom linker that makes it so that $wnd and $doc > point to an iframe created during "bootstrap" of the app. > Or as I said before, don't use widgets. --

[gwt-contrib] Re: CSS Resources are not set in Panels in an iframe

2016-01-05 Thread Thomas Broyer
Ideally, probably use a custom linker that makes it so that $wnd and $doc point to an iframe created during "bootstrap" of the app. Or as I said before, don't use widgets. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from

[gwt-contrib] Re: CSS Resources are not set in Panels in an iframe

2016-01-05 Thread confile
Hi Thomas, the reason why I want to use an iframe is the following. I want to create a JavaScript widget which is integrated into another third party page. Have a look at this: https://www.livechatinc.com/ They have a chat widget which has the following structure: // widget content