Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How difficult is designing sites for the iPhone?
Old 03-20-2010, 06:12 AM How difficult is designing sites for the iPhone?
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
I understand that there are some special CSS properties.

Obviously a:hover wouldn't work (your finger is not a cursor )

How many people have had experience with iPhone optimized sites
and how did it work out?
TWD is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-20-2010, 10:23 AM Re: How difficult is designing sites for the iPhone?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Some of the events are different, as you've noticed. You can used the compatibility guide at quirksmode.org: http://www.quirksmode.org/compatibility.html <-- he includes the iPhone in his tables.

I've only done one mobile site. Mostly it just came down to making everything smaller. Fortunately some people have worked out mobile browser detection ahead of time, so you'll know when to redirect to the smaller site: http://detectmobilebrowser.com/
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 03-20-2010 at 10:24 AM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-20-2010, 10:48 AM Re: How difficult is designing sites for the iPhone?
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Interesting because I thought that browser "sniffing" was frowned upon.

In fact I think in jQuery 1.4 the $.browser property has even been deprecated.

Personally I think its a shame because sometimes Javascript can be the only tool available.
Like trying to distinguish Chrome 4 and Safari 4 for example.
I am yet to find a pure CSS hack that does that.
TWD is offline
Reply With Quote
View Public Profile
 
Old 03-20-2010, 12:06 PM Re: How difficult is designing sites for the iPhone?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Well, there's no way around it, you'll need to browser sniff if you're going to detect mobile. If you're ONLY going to target the iPhone, maybe there's a way around it, but since it is technically Safari, and follows almost all of the same rules, there's probably not.

Browser sniffing is only frowned on in JavaScript development because it is supposed to be better to do feature testing when implementing certain code, such as using document.querySelectorAll only on browsers that support it. Feature testing is a more flexible approach because it doesn't rely on knowing every possibility that is out there. If you need to change your entire website because you're serving to mobile, browser sniffing is definitely the way to go, especially since some people have worked out a majority of the possibilities ahead of time, but it will probably need to be updated as more mobile browsers are pumped in the system.

Browser sniffing is usually done from the server anyway, not with JavaScript.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 03-20-2010 at 12:10 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-20-2010, 06:43 PM Re: How difficult is designing sites for the iPhone?
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
Browser sniffing is usually done from the server anyway, not with JavaScript.
Really?
Is there a PHP function for detecting the user agent? I've never heard of it.
TWD is offline
Reply With Quote
View Public Profile
 
Old 03-20-2010, 08:11 PM Re: How difficult is designing sites for the iPhone?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
PHP Code:

$_SERVER
["HTTP_USER_AGENT"
Contains the same user agent string that JavaScript reads. This information is sent in headers to the server before any output is sent to the browser.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.

Last edited by wayfarer07; 03-20-2010 at 08:25 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-20-2010, 08:54 PM Re: How difficult is designing sites for the iPhone?
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Interesting!
http://php.net/manual/en/function.get-browser.php

I wonder whether it can detect the difference between Safari and Chrome though
since they run basically the same rendering engine.

Look forward to trying it out soon anyway, thanks again!

Last edited by TWD; 03-20-2010 at 08:58 PM..
TWD is offline
Reply With Quote
View Public Profile
 
Old 03-21-2010, 03:30 PM Re: How difficult is designing sites for the iPhone?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Safari and Chrome have slightly different user_agent strings, so sure.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-21-2010, 04:04 PM Re: How difficult is designing sites for the iPhone?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,378
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.useragentstring.com/

http://www.useragentstring.com/pages...gentstring.php
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to How difficult is designing sites for the iPhone?
 

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.61528 seconds with 12 queries