O'Reilly logo

Sencha Touch Cookbook - Second Edition by Ajit Kumar

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

Ding-dong! You have got a message

Say we are building an application for the Sales force that allows them to look at the orders placed in the ERP system from their touch device. And, you want to notify your user by playing a notification sound as soon as a new order arrives in the system. This can be achieved using the audio component provided by Sencha Touch. In this recipe we will see how to use the audio component to play a sound.

Getting ready

Make sure that you have set up your development environment by following the recipes outlined in Chapter 1, Gear Up for the Journey.

Create a new folder, ch07, in the www folder. We will be using this new folder to keep the code.

How to do it...

Follow the mentioned steps to use the audio component:

  1. Create ...

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