Solved

Redirect web visitors whose javascript is disabled

Posted on 2014-03-12
8
284 Views
Last Modified: 2014-03-12
I have an older website, whose features will degrade gracefully for browsers with javascript disabled.  A newly-launched website has features which would be more difficult to degrade gracefully.  I'd like to direct browsers to the old site by default, and over-ride that redirection with javascript.  I've tested this in the <HEAD>:

<noscript>
  <meta http-equiv="refresh" content="0; url=http://oldsite.com/">
</noscript>

It seems to be working, but  I don't know if there will be unintended consequences.  Perhaps there is an alternative approach, or is this an acceptable method?
0
Comment
Question by:ddantes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39924969
What is the URL of the test site?  I'll be glad to try it in a few different browsers and let you know what happens.  

FWIW, I don't think there is anything wrong with your approach.  However, there are not very many clients who disable JavaScript (or cookies, for that matter) because if you remove these features you can't use most of the major and popular web sites like Facebook, Amazon, Twitter, etc.
0
 

Author Comment

by:ddantes
ID: 39924993
Thank you for offering to test.  www.mauivacationrental.com/test.htm  should redirect to www.mauitradewinds.com  with nojs.

I agree, it's a small audience who disable js.  If there's no harm in accommodating them, I'd prefer to do so.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39924997
That's the common way to do it and is supported in all browsers
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 110

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 39925280
Looks like it work OK.  I got redirected every time.  I also got snotgrams from Facebook :-)
0
 

Author Comment

by:ddantes
ID: 39925319
Thank you for testing, Ray.  Please excuse my antiquated mentality, but what do mean about "snotgrams from Facebook"?
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39925324
Facebook is "pretty lame" with JavaScript disabled.  They put a banner across the page to tell you how you are missing out on the "good experience."
0
 

Author Comment

by:ddantes
ID: 39925334
Got it!   Thanks again for your help.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39925338
Thanks for the points and thanks for using EE!  Enjoy Spring Break! ~Ray
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

734 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