iPhone Prototyping with Flex – Part 3: Changing Display

[photo by mkswork.de]
After I sketched the basic structure of our iPhone prototype in the last post, I will now continue to add some functionality.
September 25, 2009

After I sketched the basic structure of our iPhone prototype in the last post, I will now continue to add some functionality.

getty image
With Ajax you can nicely load asynchronously data without having to reload the whole webpage. Nothing new about that. But as I mentioned previously (article) Jeff Johnson points out 3 human deadlines (0.1 sec, 1 sec, 10 sec) that have to be kept in mind, when developing web applications.
Hier kommt ein kurzes JS, welches erkennt, ob der Besucher der Seite mit einem iPhone durch das Web surft:
var u = navigator.userAgent.toLowerCase();
var iphone = ((u.indexOf('iphone'))!=-1);
if (iphone) {
alert("Howdy, dear iphone owner!");
}
So könnte anschließend beispielsweise eine Weiterleitung zu einer iPhone-optimierten Seite folgen.
