The Javascript if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { if (document.cookie.indexOf("iphone_redirect=false") == -1) window.location = "http://m.espn.go.com/wireless/?iphone&i=COMR"; } The code itself is short and sweet. I, however, would prefer using the server-side method of user agent checking. The PHP if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { header('Location: http://yoursite.com/iphone'); exit(); } Share and Enjoy: ... (Continue reading)
Everyone who owns an iPhone (or who has been holding out for an iPhone 3G) is bound to be excited about a lot of the new things the device can finally do, particularly the introduction of third-party applications. But those of... (Continue reading)
When developing websites, you have to care about different browsers, as well as mobile devices such as iPhones or iPods. In this article, let’s have a look at the 10+ most useful code snippets (Javascript, PHP, CSS, etc) for developing... (Continue reading)
When Jason Kincaid tried out the iPhone app online music streaming startup Grooveshark built and showed off in July 2009, he wrote that it was great but that he “wouldn’t expect this to pop up in the App Store... (Continue reading)
Daring Fireball’s John Gruber wrote what I thought was a good response to my post about Apple’s App Store sexy app policy. While I noted that one of the reasons Apple’s policy was silly was because each iPhone contains two... (Continue reading)
Following the earthquake in Haiti, mobile fundraising via texting exploded; with over $40 million raised via text messaging alone. With the massive success of the Haiti campaign, mobile donations are now being used to raise funds for the victims of... (Continue reading)
In their January 2010 State of the Mobile Web report, Opera Software looked at social networking on the mobile Web and concluded that Facebook dominated that aspect by a margin throughout 2009, while Twitter was the fastest-growing. This month, the company... (Continue reading)
AdMob, the mobile advertising network currently being acquired by Google, this morning featured the latest results of its monthly analysis of consumer usage and attitudes across the Android, iPhone and webOS application platforms in its January 2010 AdMob Mobile Metrics... (Continue reading)
For brick and mortar retail shops, the biggest challenge right now is actually getting foot traffic in their stores. Earlier this week, The New York Times reported that retailer North Face is attempting to bring people into their stores by... (Continue reading)
As we reported last night, Yammer has just announced that it will begin allowing users to sign up for the microblogging service without requiring email addresses that are associated with their company domain names (e.g. jason@company.com). This new feature,... (Continue reading)