Will ClientBundle work when I allow people to embed my app in their site?

2012-06-26 Thread Carsten
Hi, I plan to use ClientBundle to load resources into my GWT app. Once the app is finished I plan to allow people to embed the app (reference the js-file located on my server that will load everything else). I wondered if the resource loading will automagically keep working in spite of the Sam

Re: Will ClientBundle work when I allow people to embed my app in their site?

2012-06-26 Thread Joseph Lust
Carsten, I've not done this myself, but loading image, js, and text files should not be a problem since SOP only limits XHR requests. However, if they have an HTTPS site, and your content is not served from such a domain, they would get warnings. Of course, you'd best setup a testbed to confir

Re: Will ClientBundle work when I allow people to embed my app in their site?

2012-06-27 Thread Carsten
I was talking about ClientBundle, which means resources not embedded in and loaded by the website but dynamically loaded by the GWT app at runtime. ClientBundle has to use some mechanismn inside like XHR or JSONP or something when it turns data into ExternalTextResources or DataResources. I kno

Re: Will ClientBundle work when I allow people to embed my app in their site?

2012-06-27 Thread Jens
CssResource: works as its inlined into your JavaScript to avoid round trip times. ImageResource: should work as you typically use it with GWT's @Sprite in CSS or in combination with GWT's Image class. In both cases the image will be loaded via CSS background-image: url() => no SOP. DataResourc

Re: Will ClientBundle work when I allow people to embed my app in their site?

2012-06-27 Thread Carsten
Thanks. Very helpful. From what I am reading I guess the ExternalTextResource cannot switch to JSONP at runtime? I can test at runtime if the HTML host page domain is different from the Module domain and activate it at runtime. Maybe I will use ExternalTextResource then. I need to check first i

Re: Will ClientBundle work when I allow people to embed my app in their site?

2012-06-27 Thread Jens
> > From what I am reading I guess the ExternalTextResource cannot switch to > JSONP at runtime? Correct, you can not switch at runtime because different code is generated during compilation based on the mentioned configuration property. -- J. -- You received this message because you are s