Where Am I source code
Feel free to take this source away for your learning in webOS. function WAIAssistant() { /* * Author : Peter Wong * Website : petkatan.blogspot.com */ } WAIAssistant.prototype.setup = function() { // Set orientation if (this.controller.stageController.setWindowOrientation) { this.controller.stageController.setWindowOrientation("free") }; // Setup Spinner while getting a GPS fix and set to false until got a GPS fix this.controller.setupWidget("divSpinner", { spinnerSize : "large" }, { spinning : true }); // Latitude and Longitude (set to read-only) this.attributes = { maxLength : 20 }; this.model = {'txtLatitudeModel' : '', disabled: true }; this.controller.setupWidget("txtLatitude", this.attributes, this.model); this.attributes = { maxLength : 20 }; this.model = {'txtLongitudeModel' : '', disabled: true }; this.controller.setupWidget("txtLongitude", this.attributes, this....