iPhone Prototyping with Flex – Part 3: Changing Display

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


After I sketched the basic structure of our iPhone prototype in the last post, I will now continue to add some functionality.
A quite nice feature of Flex that I came across recently is the …rest parameter in as3. You can specify some parameters. Because of the …rest parameter, you can pass additional parameters as many as you want. But the …rest must be placed at the end:
It is amazing to see how many plugin are available for jQuery by now and how easy applicable they are. By Mule Design I found a quite smart but simple solution to make UI Tabs in websites bookmarkable, using ScrollTo and LocalScroll. For the “How-to” please have a look at Mule Design’s nice tutorial.

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.
