Re: exchange image by browser

2010-06-16 Thread Joost Bloemsma
Actually, by using a conditional stylesheet (with the @if annotation) the result would be much cleaner. The browser will only receive a tailor made css, and your javascript will only be used for stuff it's intended for, not styling. On 16 jun, 03:21, Sky myonceinalifet...@gmail.com wrote: I

exchange image by browser

2010-06-15 Thread Stefan Bachert
Hi, I would like to use ClientBundle and ImageResource. But I would like to supply different images (under the same name) by browser. Does anyone have an idea how this could be achieved easily? Stefan Bachert http://gwtworld.de -- You received this message because you are subscribed to the

Re: exchange image by browser

2010-06-15 Thread fmod
I did not try myself, but I think you need conditional css. http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Conditional_CSS On Jun 15, 11:27 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, I would like to use ClientBundle and ImageResource. But I would like to

Re: exchange image by browser

2010-06-15 Thread Sky
I personally prefer to keep logic in the application's language. I like to keep CSS for just styling and keep all my logic in JS. Is there a particular reason you can't just use JS to detect which browser is running and then grab the right ImageResource for the job (in this case you then need one