Closed MartynKeigher closed 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
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
See https://github.com/Shopify/dashing/issues/37#issuecomment-35885239 for how I inform users about this via a short javascript snippet.
:+1: I was forwarding people to an error page with instructions on how to get chrome because I was working with the Amish :)
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.,