Solved

Redirecting browsers which lack html5 capacity

Posted on 2014-03-09
5
230 Views
Last Modified: 2014-03-09
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
Comment
Question by:ddantes
  • 3
  • 2
5 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39916289
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
 

Author Comment

by:ddantes
ID: 39916300
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
 
LVL 58

Accepted Solution

by:
Gary earned 250 total points
ID: 39916316
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
 

Author Comment

by:ddantes
ID: 39916513
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
 
LVL 58

Expert Comment

by:Gary
ID: 39916518
:o)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question