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
