Community Questions & Answers

Custom Event on Android

This is a very simplified version of my code. It is pretty much a window with a subview with a custom click event in the SubView. The event(SubView:getAge) is called in iOS but not by any android devices. Any thoughts on why this is not working. ####...

Why does removeEventListener need a callback?

Just a simple one. Is there any real reason why a callback is required for removeEventListener? Am I supposed to be doing something with it? example: `myView.removeEventListener('click');` wont work, it gives an index beyond bounds error. neither will...

Clipboard EventListener?

Hi there, Is it possible to attach an eventlistener to the Ti.UI.Clipboard object to execute a function if data or text is placed onto the clipboard? I'm currently working on Android only, and would like to have my Titanium application's function run...

Option Dialog IF statement

I am using titanium 3x and designing for Android. The user clicks on a tab and it opens up a dialog asking them if they have performed an action or not. If they click 'yes' another window opens and if they click 'no' it shows them a notification. The IF...

Update or Refresh Label after Function Call?

I have a button event listener which, when fired, makes a call to a function (doSync()) which is defined in my app.js as an Include (the function is a frequently used function). Upon return from doSync(), I need to update a label in the calling script. ...

TableViewSection EVENT

I am parsing JSON data and looping through it and displaying the data in TableViewSection, I need to add event listener to the table view section, on click open a new form and send a variable to that from which is one variable that is displayed in the...

Removing global event listener

I am working on a tab based Titanium Alloy iOS app. Consider the following example and advice from the Titanium documentation: ~~~ function doSomething(_event) { var foo = bar; } // adding this event listener causes a memory leak // as references...

Keep event from firing on page/tab load

I have a tab based iOS app. In the itemedit tab the user can change some item names that get stored in properties. Before they return to the items tab I want to redraw the elements to reflect these changes. I could do this in a focus event on return to...

Best Practice, Events

Considering that after published the app's logic remains in Javascript is it more efficient to.. A. Have one event listener catch multiple click events and determine from the event's source what to do next. -or- B. Have multiple event listeners

getting a fire event from inside a webview

Hi, I am trying to create a wysiwyg text editor using a script from nicEdit. My problem is figuring out how to get the text back from the text area. I have tried the following, but the fire event is not firing. view file: ~~~ <WebView...

Updating properties on tab change

I have a tabbed app where the user can change some labels in tab2, then go to tab1 and see some images with the labels they chose. The problem is that when they go to tab1, they don't see the new labels. Looking at previous posts I have tried 2...

Problem with Tab icons in Android

I am developing an App for iPhone and Android, the App is working fine on iOS but on Android when I press any button I get the following error ~~~ [ERROR] : TiExceptionHandler: (main) [6488,33628] ----- Titanium Javascript Runtime Error ----- [ERROR] : ...

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...

Showing 1-50 of 824 1 2 3 4 5 617