Reply
Old 10-16-2009, 10:13 PM mobile sites
Skilled Talker

Posts: 95
Name: Brian
Trades: 0
I dont even know if this is the right spot for this. ha

How would you make a site that detects when you're on a cell phone and switches to a much simpler site.
bdg1115 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-17-2009, 08:57 AM Re: mobile sites
Brian07002's Avatar
Defies a Status

Posts: 1,585
Name: ...
Location: ...
Trades: 0
Just use a redirect to the mobile version of the site.
__________________
Sig Less - Have some site you want me to put here? Will put here for a couple of paypal bucks.
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 10-17-2009, 09:21 AM Re: mobile sites
chrishirst's Avatar
Super Moderator

Posts: 22,221
Location: Blackpool. UK
Trades: 0
use a separate syle sheet

HTML Code:
<link rel="stylesheet" type="text/css" href="path_to_file" media="handheld"/>
or the @media rules
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-17-2009, 12:58 PM Re: mobile sites
Skilled Talker

Posts: 95
Name: Brian
Trades: 0
Would I just make the simplified site, upload it, then put that code into my exsisting page now?
bdg1115 is offline
Reply With Quote
View Public Profile
 
Old 10-17-2009, 01:29 PM Re: mobile sites
chrishirst's Avatar
Super Moderator

Posts: 22,221
Location: Blackpool. UK
Trades: 0
depends on whether you use CSS or a redirect.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-17-2009, 02:14 PM Re: mobile sites
Skilled Talker

Posts: 95
Name: Brian
Trades: 0
Redirect may be easiest.
bdg1115 is offline
Reply With Quote
View Public Profile
 
Old 10-17-2009, 02:22 PM Re: mobile sites
chrishirst's Avatar
Super Moderator

Posts: 22,221
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by bdg1115 View Post
Redirect may be easiest.
Don't you go believing that

You need to detect the UserAgent string of every mobile browser/mobile device and test it serverside then redirect if it matches.

And keep the list updated as new divices are introduced.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-17-2009, 02:24 PM Re: mobile sites
Skilled Talker

Posts: 95
Name: Brian
Trades: 0
Haha dang. Would it be more work then what it's worth?
bdg1115 is offline
Reply With Quote
View Public Profile
 
Old 10-17-2009, 02:42 PM Re: mobile sites
chrishirst's Avatar
Super Moderator

Posts: 22,221
Location: Blackpool. UK
Trades: 0
I think so. Unless there is a 100%, cast iron, gold plated reason to do so.

Anything I've done recently (3 or 4 years) has used all relative values for the CSS and we've looked at the sites using all kinds of phones, PDAs, notebooks, netbooks, tablets etc etc and not seen any issues that needed specific targeting.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-17-2009, 04:18 PM Re: mobile sites
Skilled Talker

Posts: 95
Name: Brian
Trades: 0
Ok so CSS it is
bdg1115 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to mobile sites
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.14972 seconds with 13 queries