Mobile web

How to use the W3C Geolocation API

Introduction Imagine visiting a city for the first time. You're hungry, but don't know where the nearest restaurants are and which of them are any good. Wouldn't it be nice if some app could detect your location and provide you with a list of restaurants closest to you, along with reviews and ratings for each one? And this is not the only consideration — could it detect your location accurately, keeping in mind your privacy as well? This is where the W3C Geolocation API comes in, suppo...

iPhone App Dev with Titanium – Event Listeners

In this lesson, Dr. Rafael Hernandez will teach you how to add simple interactivity to an application through the use of an event listener. Here is the code in video, you may need it. [code] // this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // create tab group var tabGroup = Titanium.UI.createTabGroup(); // Home window var win1 = Titanium.UI.createWindow({ title:'Event Listeners', ...