Solved

Redirecting browsers which lack html5 capacity

Posted on 2014-03-09
5
222 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
:o)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now