Community Questions & Answers

Array and SQL

Hi everyone. I'm trying to create an app where you get data from SQLite database and with that data you create new imageViews, labels and then adds event listeners to those new created items to send you to another window. I was able to create these views...

Is this an event propagation issue?

Hi, I have a simple window and a simple imageView attached to it. I added an event lister 'click' on window to play a little mp3 and I also added an event listener 'click' on imageView to play another little mp3 file. When I click on the imageView both...

Click table data

~~~ var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ]; var table = Ti.UI.createTableView({ data: tableData }); win5.add(table); ~~~ How can I use `addEventListener` to make one of the table data values...

iOS Push Notification

Hi! My app is working with PushNotification from Apple. I made a function to register for push and this is working well. At the start of my app i'm calling exactly this function and saving the recieved deviceToken in the Preference Table of my database. At...

Variable in EventListener not being set

Hi, When i get to the Ti.API.info line, the variable theSelected is being present as null - can anyone help with this?? ~~~ var theSelected; Ti.App.addEventListener("app:fromHomeScreen", function(e) { theSelected =...

FireEvent When WebView Loads

HI, I followed a tutorial on the Wiki so that i am getting data from a index.js controller to a WebView however at the moment, the fireEvent only occurs when a button is pressed: ~~~ button.addEventListener('click', function(e) { ...

Skip Button for iPhone

I have a few statements in an array and I'd like to cycle through them with a skip button. I've added an event listener to the button but it only seems to effect the button and not my statements. Here's the code example: ~~~ //Label for Statement var...

Showing 1-50 of 781 1 2 3 4 5 616