Community Questions & Answers

How to check if a listener exists ?

Hi, I have a local webview and im using addEventListener to add a new listener. I have this: ~~~ Ti.App.addEventListener('saveClient', function(e){ // My code... }); ~~~ This is inserted into a js function. How can I check if a event Listener exists...

Add event listener to an element loaded in a webview

I am working on a sample app using titanium. I have created a webview and loaded a local html as shown below ~~~ var webview = Ti.UI.createWebView({ borderWidth:0, paddingRight:10,width:310,top:25, height:210,left:5 }); webview.html =...

Click image in table row

In my app, I'm looping through my results, and one thing I'm adding in each row is an image, that a user will click to delete. I have an event listener for my table (as opposed to each row), and I have one added to my delete image individually. When I...

image load

Hello, in a simple imageView property how can i add a listener for the image if loaded, i just want a alert if image loaded, ~~~ var myimage = Ti.UI.createImageView({ image:'http://www.xxx.com/1.jpg', defaultImage:'default_image.png', ...

Listener not reacting? Help please?

I am programming an App on the iPhone, with Titanium Developer 1.2.2. My app.js simply calls an image (splash screen), then on a click will go to the main win: ~~~ Titanium.UI.setBackgroundColor('#000'); var win = Titanium.UI.createWindow({ title:...

Using Titanium.Network.addConnectivityListener

Is this how I would use the connectivity listener? ~~~ if (Titanium.Network.addConnectivityListener()) { //code I would use to do something if connected to internet } else { //code for not connected to internet } ~~~ Thanks for the help.

Label Click Event Listener Problem

Hey Guys I have a slight issue that is really bugging me, I am creating a load of Labels on the fly based on the results of a JSON query (Contained in a For Loop). I have an event listener that sits outside the For Loop, this then goes to a different...

Switches won't fire.

Ok so I need to dynamically generate UI controls. (I won't be sure how many controls I need - it's being determined based on a data table) Each control needs a unique name so I can create a specific event handler. I got this accomplished by looping...

Showing 1-50 of 54 1 2