Smartphone Thoughts - Daily News, Views, Rants and Raves

Be sure to register in our forums! Share your opinions, help others, and enter our contests.





Go Back   Thoughts Media Forums > SMARTPHONE THOUGHTS > Smartphone Thoughts Site Updates

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2004, 10:00 PM
Executive Editor
Jason Dunn's Avatar
Join Date: Aug 2006
Posts: 23,029
Default Updating Mobile Re-Direct Code

All Thoughts Media Web sites have code (written by Fabrizio of course!) that detects the incoming Web browser request and serves up either a desktop version of the site, or a mobile version, depending on the client requesting the page. Every so often we update the code to make sure we're addressing as many clients as possible. So here's what I'd like you do to: with your mobile device, visit the site you're reading this on. If you get re-directed to the mobile version, things are workings as they should. ;-) If you're using a Windows Mobile-based Pocket PC or Smartphone, you should be seeing the mobile site. If you're not, odds are you've done a registry hack to change the user agent

For users of other mobile devices, if you don't get re-directed to the mobile site, please go to this URL:

www.pocketpcthoughts.com/tools/ua.php

Record the user agent string it reports, then post it as a comment in this thread so we can add it to our code. Thanks for your help in improving our system!
 
Reply With Quote
  #2 (permalink)  
Old 04-23-2004, 10:48 PM
Editor Emeritus
Jerry Raia's Avatar
Join Date: Aug 2006
Posts: 6,244

Strange, on my i600 the login page comes up in the mobile format. Once I log on, its all messed up. It looks like the regular desktop page.

The PPC Thoughts pages come up perfect before and after login though.
__________________
[Q 9h] [iPhone (16gb)] [att Tilt]
[EOS-1D MarkIII] [G9]
 
Reply With Quote
  #3 (permalink)  
Old 04-23-2004, 10:54 PM
Editor Emeritus
Jerry Raia's Avatar
Join Date: Aug 2006
Posts: 6,244

I tried it again, worked for the logged on home page this time but when i navigated to this thread it came up as the non-mobile web page.

Also i noticed on the mobile home page there is no navagation bar of anykind.
__________________
[Q 9h] [iPhone (16gb)] [att Tilt]
[EOS-1D MarkIII] [G9]
 
Reply With Quote
  #4 (permalink)  
Old 04-23-2004, 11:31 PM
Intellectual
Join Date: Jul 2003
Posts: 195

8O You've really got to come up with shorter URLs!

I can tell you that it doesn't work on a Nokia 6230 - it shows the full site. When I have an hour to spend typing in that other URL, I'll let you know what the UA string is ... :P

Kidding... I wouldn't do that. It's:

Nokia6230/2.0 (03.14) Profile/MIDP-2.0 Configuration/CLDC-1.1

...but are you really doing this with JavaScript? How? That's a client-side technology, and most mobile devices don't support it. How can it redirect when the device can't run the code? Seems like PHP would be the better place to do it.

Also, why try to maintain a list of all user agents for all WAP phones? What a chore! Why not just look for "text/vnd.wap.wml" in the HTTP-ACCEPT header, (then make an exception for Firefox)? That would be much easier, IMHO. :wink:
 
Reply With Quote
  #5 (permalink)  
Old 04-23-2004, 11:47 PM
Editor Emeritus
Jerry Raia's Avatar
Join Date: Aug 2006
Posts: 6,244

This Site doesnt come up in the mobile format on my iPAQ 5555 either.
__________________
[Q 9h] [iPhone (16gb)] [att Tilt]
[EOS-1D MarkIII] [G9]
 
Reply With Quote
  #6 (permalink)  
Old 04-24-2004, 12:04 AM
Executive Editor
Jason Dunn's Avatar
Join Date: Aug 2006
Posts: 23,029

Quote:
Originally Posted by Lasher
Strange, on my i600 the login page comes up in the mobile format. Once I log on, its all messed up. It looks like the regular desktop page. The PPC Thoughts pages come up perfect before and after login though.
That's because mobile forums are a subscriber benefit, and we haven't yet launched subscriber services on the site. :wink: I only wanted to know if you can see the mobile site, which is one page.
 
Reply With Quote
  #7 (permalink)  
Old 04-24-2004, 12:09 AM
Executive Editor
Jason Dunn's Avatar
Join Date: Aug 2006
Posts: 23,029

Quote:
Originally Posted by rbrome
...but are you really doing this with JavaScript?
<cough cough> Um, I was informed that it's not JavaScript. ops: It's a server-side thing.

Quote:
Originally Posted by rbrome
Also, why try to maintain a list of all user agents for all WAP phones? What a chore! Why not just look for "text/vnd.wap.wml" in the HTTP-ACCEPT header, (then make an exception for Firefox)? That would be much easier, IMHO. :wink:
Good question. We don't have a WAP portal though, so are you saying that WAP phones can render the HTML? I'm a little vague in this area...
 
Reply With Quote
  #8 (permalink)  
Old 04-24-2004, 12:33 AM
Editor Emeritus
Jerry Raia's Avatar
Join Date: Aug 2006
Posts: 6,244

Quote:
Originally Posted by Jason Dunn
Quote:
Originally Posted by Lasher
Strange, on my i600 the login page comes up in the mobile format. Once I log on, its all messed up. It looks like the regular desktop page. The PPC Thoughts pages come up perfect before and after login though.
That's because mobile forums are a subscriber benefit, and we haven't yet launched subscriber services on the site. :wink: I only wanted to know if you can see the mobile site, which is one page.
Then I eagerly await the launch

WHEN????? :changes:
__________________
[Q 9h] [iPhone (16gb)] [att Tilt]
[EOS-1D MarkIII] [G9]
 
Reply With Quote
  #9 (permalink)  
Old 04-24-2004, 12:47 AM
Intellectual
Join Date: Jul 2003
Posts: 195

Quote:
Originally Posted by Jason Dunn
Quote:
Originally Posted by rbrome
Also, why try to maintain a list of all user agents for all WAP phones? What a chore! Why not just look for "text/vnd.wap.wml" in the HTTP-ACCEPT header, (then make an exception for Firefox)? That would be much easier, IMHO. :wink:
Good question. We don't have a WAP portal though, so are you saying that WAP phones can render the HTML? I'm a little vague in this area...
Ah - your mobile site is HTML? I assumed it was WML. My bad.

Some newer (non-MS) phones are designed to support HTML, but certainly not a majority. However, most new phones have WAP 2.0 browsers that support xHTML. They're not specifically designed to support HTML, but since xHTML and HTML are so similar, many are "HTML tolerant", essentially providing unofficial HTML support.

Regardless, any browser that has "text/vnd.wap.wml" in the HTTP-ACCEPT header is almost certainly a phone, and shouldn't see the "full" site by default (regardless of the markup language involved). The exception is the new Firefox browser - some versions of Firefox report "text/vnd.wap.wml" in the HTTP-ACCEPT header. But looking for Firefox in the user-agent is an easy way to work around that. It's certainly easier than trying to build a database of user-agent strings for every mobile device out there... 8O
 
Reply With Quote
  #10 (permalink)  
Old 04-24-2004, 03:08 AM
Contributing Editor
Ed Hansberry's Avatar
Join Date: Aug 2006
Posts: 7,844

Nokia3650/1.0 SymbianOS/6.1 Series60/1.2 Profile/MIDP-1.0 Configuration/CLDC-1.0

__________________
Boring text sig
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Browsing the Web on MS Smartphone (WM Standard) devices & Review of Opera Mini 4 beta Menneisyys Smartphone Software 28 11-13-2007 06:32 PM
The Button Enhancer Bible & great button config tips for Opera Mobile / Mini users Menneisyys Smartphone Talk 1 10-21-2007 11:40 AM
Sling Media Releases Windows Mobile 6 Client Mike Temporale Smartphone Software 3 06-25-2007 01:20 PM
Mobile and Embedded Developer Conference 2005 Peter Foot Smartphone Events 4 05-18-2005 04:48 PM
Mobile DevCon 2004 San Francisco Jason Dunn Smartphone Events 1 04-07-2004 12:59 AM


All times are GMT +1. The time now is 04:36 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 RC7