Re: Changing the css file at runtime

2009-01-15 Thread Lorenzo Nazario
In order to change the css at runtime (or better not "change" but "append") try this native method: public static native void loadCss(String url) /*-{ var fileref=document.createElement("link"); fileref.setAttribute("rel","stylesheet"); fileref.setAttribute("type","text

Re: Changing the css file at runtime

2009-01-14 Thread Adam T
I would say you need to use JSNI - do a search for how to change CSS file using JavaScript and then implement something similar wrapped in a JSNI method. You can then call that method to change the style sheet, either programmatically by just calling it, or if you want to harness the bootstrappin

Changing the css file at runtime

2009-01-13 Thread Kamlesh
Hi, I have different css files in my application say user1.css, user2.css and so on corresponding to each user. My requirement is that when a particular user logs in the system (consider the LMS application) I have to apply the css corresponding to that user. How can I achieve this requirement u