Community Questions & Answers
How can i access a variable in an event on android?
Hi, what I want to do works fine with iPhone, but not with Android. I have to say that I'm not an JavaScript expert, may be I do some basic thing wrong. This is my code snippet of file DatasetListController.js: ~~~ function...
[ERROR] Your TARGET_BUILD_DIR is incorrectly set.
Hi I have download the newest version of xcode and now i get this error every time I launch an application [ERROR] Your TARGET_BUILD_DIR is incorrectly set. Most likely you have configured in Xcode a customized build location. Titanium does not currently...
question about scope; using "this" vs reference name
I'm getting to grips (I think) with the CommonJS approach, and have a question; Here is a piece of code: ~~~ // Filename: Test.js function Test(){ var _view = Ti.UI.createView(); _view.doSomething = function() { Ti.API.info('this:' + this);//...
Using "this" in event listeners inside constructo functions
I have a commonJS module for a view. ~~~ function SomeView() { var self = Ti.UI.createTableView({ }); //this is a custom event fired to this view self.addEventListener('save',function(e){ if(//some conditoin ){ this.someVar =...
Dynamically Assign Listener to Button And Access Button width
I'm referring to a similar problem to this: http://developer.appcelerator.com/question/84241/dynamically-assign-listener-to-button But I have another problem. This and That both do not work. Can anyone help? ~~~ var that =...
xhr.responseXML.documentElement ; application stop unexpectedly
var doc1 = xhr.responseXML.documentElement; Ti.API.info("reach");
this inside addeventlistener callback
The 'this' inside an addeventlistener callback is always null and I think this is not a nice thing. Such way I can't do pass as callback an custom object method ad referencing that object inside the method.. for example I can't do ~~~ customObject =...
in-object communication issue
Hello, I created a object containing also a button with an event listener. ~~~ function winAddUser() { this.infoVar = '122'; this.bExistingUser = Titanium.UI.createButton({ height: 55, width:...
Titanium REFUSES to load. Modules issues.
Not really sure. I'm running Arch Linux. Everything is up to date completely. http://codepad.org/ldv09wzc
This project is not configured for Android
I have followed the threads about missing Android tabs as there was no sign of Android tabs on the test&package window. Installing the suggested fixes broke Titanium completely and wouldn't run existing I-Phone projects. I deleted all the Titanium...
Showing 1-10 of 10