Shopify / dashing

The exceptionally handsome dashboard framework in Ruby and Coffeescript.
http://shopify.github.com/dashing/
MIT License
10.97k stars 1.18k forks source link

Internet Explorer - User message #131

Closed MartynKeigher closed 11 years ago

MartynKeigher commented 11 years ago

Hey all,

Every time I, or others, view my dash in IE, it never works. Is there a way to add a HREF link or just some custom text to that page, that basically informs people to use another browser to view the dashboard correctly??

I ONLY want this text to appear IF the viewer is using IE.

Thanks.,

davefp commented 11 years ago

You can use conditional comments in IE9 and below to render content to IE users only: http://msdn.microsoft.com/en-us/library/ms537512(v=vs.85).aspx

For IE10, MS recommends a different fallback strategy: http://msdn.microsoft.com/en-us/library/hh273396(v=vs.85).aspx

gregology commented 11 years ago

I forward all users without chrome to a getchrome.html page stored in public using javascript located in layout.erb. https://github.com/AmnestyInternational/LCARS/blob/master/dashboards/layout.erb

<script>
   if (!window.chrome) {
     self.location="/getchrome.html";
   }
</script>

You could use the same method to forward only IE users to /getchrome.html. This is my getchrome page https://github.com/AmnestyInternational/LCARS/tree/master/public

centic9 commented 10 years ago

See https://github.com/Shopify/dashing/issues/37#issuecomment-35885239 for how I inform users about this via a short javascript snippet.

gregology commented 10 years ago

:+1: I was forwarding people to an error page with instructions on how to get chrome because I was working with the Amish :)