Re: How to dynamically load css style in GWT-based application

2015-04-09 Thread Ltearno
Hi ! The tool HexaCss for GWT answers exactly your needs (as i understand them). With it you can produce several CSS files for the same GWT application (and still using them in a type-safe way, like with CssResource) and you can then change them dynamically without reloading the application. H

Re: How to dynamically load css style in GWT-based application

2014-09-02 Thread Benjamin Cuthbert
Okay interesting. So do you have the css deployed into the war? Or unpacked on the server? On Tuesday, September 2, 2014 4:31:02 PM UTC+1, Yuri C wrote: > > In my case the idea was to have a CSS per screen. I call the server the > first time the very first time that particular "screen" is reveal

Re: How to dynamically load css style in GWT-based application

2014-09-02 Thread Yuri C
In my case the idea was to have a CSS per screen. I call the server the first time the very first time that particular "screen" is revealed. On Tuesday, September 2, 2014 3:56:56 AM UTC-4, Benjamin Cuthbert wrote: > > Hi Yuri, > > How do you make the call to the server? via the onModuleLoad? > >

Re: How to dynamically load css style in GWT-based application

2014-09-02 Thread Benjamin Cuthbert
Hi Yuri, How do you make the call to the server? via the onModuleLoad? On Tuesday, January 15, 2013 6:52:57 PM UTC, Yuri C wrote: > > I have 2 CSS loaders. > One relies on tags. This is the preferred way to load CSS as long > as you don't need to be notified when the stylesheet is loaded. > Ano

Re: How to dynamically load css style in GWT-based application

2013-01-15 Thread Yuri C
I have 2 CSS loaders. One relies on tags. This is the preferred way to load CSS as long as you don't need to be notified when the stylesheet is loaded. Another one updates the page with CSS loaded via a separate HTTP request and you can register a callback to be notified when the CSS is loaded.

Re: dynamically load css?

2008-11-20 Thread metalex
The method "private void updateStyleSheets()" from Showcase.java from the samples package is exactly what i needed. I recommend everyone interested in the topic to take a look at it. @lex On Nov 19, 8:29 pm, metalex <[EMAIL PROTECTED]> wrote: > Hallo everyone, > > I'm interested on the status of

Re: dynamically load css?

2008-11-19 Thread metalex
Hallo everyone, I'm interested on the status of this problem. I'm also required to load css dynamically for a work project. Even if i use the dom classes to create a

Re: dynamically load css?

2008-11-10 Thread Jason Essington
There isn't a cross platform way to do this. But, In IE you can use JSNI and do something like: var ss = $doc.createStyleSheet(); s.cssText = myCSS; and everywhere else, just use the DOM classes to create a style element, set type to "text/css" and set the inner text to your CSS then append

Re: dynamically load css?

2008-11-07 Thread walden
I'm talking about "dynamically load a html and its respective stylesheet. (after ,say, clicking a button). " That's what usually happens when a user clicks a link on a web page (or a button with a little script to set location). If that's all you want, why don't you just let the browser do it?

Re: dynamically load css?

2008-11-07 Thread samsus
what are you talking about? On Nov 7, 4:04 pm, walden <[EMAIL PROTECTED]> wrote: > Are you reinventing the browser? > > Why don't you put a link on your page and let the user click it. > Maybe you can style the link to look like a button. > > On Nov 7, 10:13 am, samsus <[EMAIL PROTECTED]> wrote:

Re: dynamically load css?

2008-11-07 Thread walden
Are you reinventing the browser? Why don't you put a link on your page and let the user click it. Maybe you can style the link to look like a button. On Nov 7, 10:13 am, samsus <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Im trying to do an app where the user can dynamically load a html and

dynamically load css?

2008-11-07 Thread samsus
Hello everyone, Im trying to do an app where the user can dynamically load a html and its respective stylesheet. (after ,say, clicking a button). How can this be done? im using RequestBuilder to load the html, however when i used to load the css, the stylesheet is not apllied, i also tryed: priv