Detecting if it is iphone browser or iphone specific coding for web site.

July 30th, 2009 by admin
0

Detecting if it is iphone browser:
if ((navigator.userAgent.indexOf(‘iPhone’) != -1) ||
(navigator.userAgent.indexOf(‘iPod’) != -1)) {
document.location = “http://www.celtu.com/iphone/”;
}

References for details:

http://www.engageinteractive.co.uk/blog/2008/06/19/tutorial-building-a-website-for-the-iphone/#detection

example: http://www.engageinteractive.co.uk/tutorials/iphone/index.html

http://www.engageinteractive.co.uk/tutorials/iphone/tutorial.html

http://developer.apple.com/iphone/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarioniPhone.html

http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/TextandWeb/TextandWeb.html

iphone ajax:

http://developer.apple.com/safari/articles/optimizingajax.html

Post to Twitter Tweet This Post

  • Share/Bookmark
Posted in Uncategorized

Leave a Reply