Appcelerator-Q-A-banner

Community Questions & Answers

Problem with addEventListener

Hello, I need help. I have addEventListener and I need to change sing ( + to - , - to *, * to /, / to +). My addEventListener once it changes and that all. This is my code. ~~~ var labelSign1 = Ti.UI.createLabel({ text: "+", left:...

Launch addeventlistener from other js

I have many variables for levels and one file game.js . This is my code menu.js ~~~ level_2_view.addEventListener('click', function(e){ // I need launch this addEventListener from game.js clickstart.play(); e.source.image =...

Scale in the array

Hello, I need help. This is my code ~~~ var size = Ti.App.globalSize; var widthSize; if (size == 3){ widthSize = '30%'; }else if (size == 4){ widthSize = '23%'; }else if (size == 5){ widthSize = '19%'; } var J = []; for (var i = 0; i < size; i++)...

Loading a new page in a tabgroup

Hi all, It's been a few years since I last used Appcelerator, so I've forgotten some of the basics. Question: I have created a tab group. The tabgroup opens a homepapage, in that homepage is a button that attempts to load to a register page. The event...

Tab doesn't take the click event

Hello, i put an EventListener ('click') on a Tab in my TabGroup, but the Event doesn't fire. Here is my Code: ~~~ tab2.addEventListener('click',function(e){ alert('Hello'); }); ~~~ is there a genreal problem with that?

How to get row index?

Hello everyone. I am new in titanium, and I have a problem with getting index of listener. This is my code: var addTask = function(e) { var row = Ti.UI.createTableViewRow({...}); var label = Ti.UI.createLabel({...}); var DoneCheckbox =...

Showing 1-50 of 897 1 2 3 4 5 618