Posted in ColdFusion | Posted on 12-11-2007 | 5,493 views
The ColdFusionBloggers aggregator now automatically detects the iPhone browser and sends it to a special URL:
http://www.coldfusionbloggers.org/iphone.cfm
This was done with some rather trivial code:
1<!--- detect iphone --->
2<cfif findNoCase("iphone", cgi.http_user_agent)>
3 <cflocation url="iphone.cfm" addToken="false">
4</cfif>
2<cfif findNoCase("iphone", cgi.http_user_agent)>
3 <cflocation url="iphone.cfm" addToken="false">
4</cfif>
Let me know if this breaks any non-iPhone users. Or - if you use some other mobile browser, feel free to add this to your bookmarks.


I know CFBloggers was made to highlight CF8 and all of it's ajax goodness so this comment maybe out of line, but those of us who hate to see the data section of a wireless bill... it would help to stop panic attacks, or a least limit their duration!
Maybe using the drill down template some1 posted on your review of the iphone/ipod?
@Raul - heh I love the design. :)
<meta
name = "format-detection"
content = "telephone=no">
What's the two second run-down?
I think that nobosh Answers still holds the Best Coldfusion iPhone Web App Award...
http://answers.nobosh.com/iphone
[Add Comment] [Subscribe to Comments]