O'Reilly logo

HTML5 iPhone Web Application Development by Alvin Crespo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dynamic audio player

So at this point, we have an audio class that extends our MediaElement object with events that are exposed and therefore available for us to create dynamic content. Now, let's have some fun and create a dynamic audio player that switches tracks.

The select element

Originally, when we created this application in Chapter 1, Application Architecture, we created a navigation that is contained by anchor tags and list elements. Although this works perfectly on desktop and perhaps the iPad, it is not suitable for smaller screen devices like the iPhone. For this reason, the select element brings up a native component that allows you to easily navigate choices that you can select.

Apple's developer documentation suggests that we use the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required