Use Left & Right arrows for page navigation
Last Modified: June 2014
You can start building apps right now if...
We're interested in building apps which runs in devices having
of Apps
To develop any application, we worry about two things...
(next slides)
While building apps, we
So, apps are basically Web Apps!
Optionally (highly recommended):
Any text editor will work. We'll be making following types of files:
You can use Sublime, Notepad++, Netbeans, Eclipse or even the basic editor which comes with your OS.
To see the complete functionality of your app, we'll use Firefox Browser - the desktop browser we all love.
We'll open the HTML files with our browser.
App Manager comes built-in with Firefox 26.0+. App manager can be used to install Firefox OS simulator or to send apps to your device.
It's time for a "Hello World" app, right now!
// Refer to UI elements
var button = document.getElementById('myButton');
var txtInput = document.getElementById('myTextInput');
// Bind click event of the button with an event listener
button.addEventListener('click', function(){
var text = txtInput.value;
// Show alert box with this text
alert(text);
})
Not really. You can test your app using the Firefox Browser. I can test all the functionalities almost, using the browser & mobile view. So each time you update your app you can test by just refreshing the browser.
To give your app a mobile application like look and feel, you can use many frameworks.
jQuery Mobile is a cool framework, which turns your HTML stuffs into cool mobile app!