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  wrote:
> 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 ImageResource for each browser)? Of
> course, you don't have to comply with my own standards and as such you
> would need to use conditional css as was kindly mentioned by fmod.
>
> :)
>
> On Jun 15, 7:38 pm, fmod  wrote:
>
> > I did not try myself, but I think you need conditional 
> > css.http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.htm...
>
> > On Jun 15, 11:27 am, Stefan Bachert  wrote:
>
> > > 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 Bacherthttp://gwtworld.de
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 ImageResource for each browser)? Of
course, you don't have to comply with my own standards and as such you
would need to use conditional css as was kindly mentioned by fmod.

:)

On Jun 15, 7:38 pm, fmod  wrote:
> I did not try myself, but I think you need conditional 
> css.http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.htm...
>
> On Jun 15, 11:27 am, Stefan Bachert  wrote:
>
>
>
> > 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 Bacherthttp://gwtworld.de

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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  wrote:
> 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 Bacherthttp://gwtworld.de

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.