iPhone version of ColdFusionBloggers.org
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:
<!--- detect iphone --->
<cfif findNoCase("iphone", cgi.http_user_agent)>
<cflocation url="iphone.cfm" addToken="false">
</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.
Comments
Not the prettiest WebApp :P hehe. But then again.. there is so much text around that no "pretty design" could be apply to it.
Maybe using the drill down template some1 posted on your review of the iphone/ipod?
Maybe using the drill down template some1 posted on your review of the iphone/ipod?
# Posted By Raul Riera
| 12/11/07 4:14 PM
@Michael - good idea. I removed them.
@Raul - heh I love the design. :)
@Raul - heh I love the design. :)
# Posted By Raymond Camden
| 12/11/07 4:15 PM
Cool stuff. I don't have an iPhone, but I am curious about what this is:
<meta
name = "format-detection"
content = "telephone=no">
What's the two second run-down?
<meta
name = "format-detection"
content = "telephone=no">
What's the two second run-down?
Great - saved me from looking around for the "rather trivial solution", as you say, nonetheless worth to blog -I probably won't use it for another five weeks, but we'll launch a new site with a dedicated iPhone section in about two months, so this is really helpful- thanks again. The Apple iPhone is a fantastic device I think, even SAP apparently announced it would port some applications to it as it "is so easy to integrate into corporate environments".
it tells the iPhone not to render phone numbers as clickable links. The dates were confusing the iPhone. FYI I'm writing this on my iphone.
# Posted By raymond camden
| 12/11/07 5:02 PM
Very nice! congrats to the team.
I think that nobosh Answers still holds the Best Coldfusion iPhone Web App Award...
http://answers.nobosh.com/iphone
I think that nobosh Answers still holds the Best Coldfusion iPhone Web App Award...
http://answers.nobosh.com/iphone
Doesn't seem to work with the iPod Touch browser.
# Posted By Jamie
| 12/11/07 7:35 PM
Jamie, what part doesn't work? The auto detection, or the layout?
# Posted By Raymond Camden
| 12/11/07 7:50 PM
The autodetect. I meant to check the user agent on the Touch but got distracted. I believe you have one too though. . .
# Posted By Jamie
| 12/11/07 8:32 PM
Turns out the Touch browser uses iPod instead of iPhone.
# Posted By Jamie
| 12/11/07 8:36 PM
So I could just add a check for ipod. Think I should?
# Posted By Raymond Camden
| 12/11/07 8:41 PM
Absolutely. Google was upsetting a lot of us Touch owners. They took a long time to update the Google Reader detection code.
# Posted By Jamie
| 12/11/07 9:01 PM
I'll try this out on my BB 8830 and see how it works.
# Posted By Lola LB
| 12/12/07 7:12 AM
I've added an ipod check.
# Posted By Raymond Camden
| 12/12/07 8:11 AM
Just tried on my iPhone. Very nice. Auto-redirect to iphone.cfm didn't work, but typing in gives me the nicely phone-formatted homepage.
# Posted By thiman
| 12/12/07 10:48 AM
Can you please find out your user agent? I just double checked and it works fine for me.
# Posted By Raymond Camden
| 12/12/07 10:52 AM


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!