Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

Redirecting browsers which lack html5 capacity

I have a new website which uses html5, and I notice it works poorly under IE8.  Perhaps there are other browsers which would not render a good user experience.  Can you suggest a script which would redirect html5-incapable browsers to my previous site, which doesn't use html5?
0
ddantes
Asked:
ddantes
  • 3
  • 2
1 Solution
 
GaryCommented:
What is it you are using that is failing.
You can use a shim/shiv that makes IE8 almost seem like an HTML5 browser - 'fixes' things like section/nav tags etc. so IE understands the markup
0
 
ddantesAuthor Commented:
Some pages have scalable image thumbnails which enlarge to full-size on click, or tap, with shadowbox.  This works under IE8 in the original site,  coded XHTML 1.0 Transitional.  In the html5 site, the images load full-size, instead of thumbnails.

www.mauivacationrental.com/StarWind.htm  versus www.mauitradewinds.com/StarWind.htm

I uploaded html5shiv.js and included the following code in the <HEAD> section of www.mauivacationrental.com/test.htm :
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->

The same behavior is observed with those thumbnails.
0
 
GaryCommented:
Well rather than trying to fix what is not fixable pop this in your header

<!--[if lt IE 8]>
<script type="text/javascript">
      window.location = "oldsite.php"
</script>
<![endif]-->

Open in new window


...and count the days til the end of IE8
0
 
ddantesAuthor Commented:
That helped.
You are generous with your time and expertise.  I feel  the same of all the Experts, and you have been particularly helpful to me with a difficult project I am wading through.
0
 
GaryCommented:
:o)
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now