[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

forwarding mobile users without javascript

Posted on 2009-12-19
3
Medium Priority
?
348 Views
Last Modified: 2012-05-08
i'm currently building a WAP-compatible version of my website just for mobile users, but since it's common for cell phones and smartphones to have javascript turned off or not installed, i need a way to detect and forward mobile users without using javascript (like what twitter does). i'd like to forward users from http://domain.com/ to http://m.domain.com/ anyone done this before?
0
Comment
Question by:xill2678
  • 2
3 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 26088698
What smartphones have JS turned off???

None I know of.

You need to forward the JS people instead


<html>
<head>
<script>
location.replace('jsenabled.html');
</script>
0
 
LVL 1

Author Comment

by:xill2678
ID: 26088834
i have a Sidekick LX from t-mobile and javascript was disabled by default. My wife has the iPhone with AT&T and javascript was turned off by default as well. most likely for security reasons. but this doesn't really answer my question of forwarding mobile users without javascript...
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 2000 total points
ID: 26089692
You must have very paranoid carriers in the US. Anyway you have 3 ways in descending order of Good Practise:
1. Have a welcome page with a link visible to javascript disabled using noscript
2. What I suggested is perfectly workable and I do not see an issue there
3. Some hack I have not tested involving using javascript to remove a meta redirect tag before it is executed.
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.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …
Suggested Courses
Course of the Month20 days, 3 hours left to enroll

873 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