Thanks Chris
that gruden page is pretty helpful, it's very similar to the approach
i've been taking.  except i didn't come across those smart <link
media=...> definitions until i had already done this:

<cfif cgi.http_accept contains "text/vnd.wap.wml" || cgi.http_accept
contains "application/vnd.wap.xhtml+xml" ||
structKeyExists(cgi,"HTTP_X_WAP_PROFILE")>
   <cfset Variables.isMobile = true />
<cfelseif findNoCase("iphone", cgi.http_user_agent)>
   <cfset Variables.isMobile = true />
</cfif>

i'm still happy with that - i'll have to add more options to the
useragent selector, but it means i can make a couple of deft page layout
changes like
<cfif Variables.isMobile><img src="big flash header"><cfelse><img
src="little jpeg header"></cfif>

the hardest thing about the mobile business for an independent
contractor is testing.  i've got two OS platforms with three browsers on
each, which pretty much covers the browser options.  but i don't own a
smartphone.  and some days i feel like i need three.

asd

On 04/05/10 15:28, Chris Velevitch wrote:
> On Tue, May 4, 2010 at 14:11, nomadic fish <[email protected]> wrote:
>   
>> the biggest surprise for me was that the newer smartphones (iPhone and
>> android among others) don't respect @handheld stylesheets.  so we're back to
>> browser sniffing to decide what content to deliver to which sized devices.
>> your first decision will be how many subsets of "mobile device" you're going
>> to support.
>>     
> Try using:-
>
> <link rel="stylesheet" href="/lib/mobile.css" type="text/css"
>     media="handheld, only screen and (max-device-width: 25cm)">
>
> There is a blog article by Gruden [1] that talks about styling for the iPhone.
>
>
> [1] http://blog.gruden.com/2009/04/gruden-site-now-iphone-friendly/
>
>
>
> Chris
> --
> Chris Velevitch
> Manager - Adobe Platform Users Group, Sydney
> m: 0415 469 095
> www.apugs.org.au
>
> Adobe Platform Users Group, Sydney
> May 2010: TBD
> Date: 31st May 6pm for 6:30 start
> Details and RSVP coming soon
>
>   

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to