Community Questions & Answers
Issues in Using Class Styles with Alloy in Latest Alloy Update
Hi all- Has anyone seen issues in the latest update to the Alloy framework (released the week of April 22, 2013) in using classes within tss files? I use classes extensively to style my application, and upon upgrading my framework, I noticed that my...
Alloy Programmatically Add Class to Element
How do I create an element (buttons, views, labels etc) via code and assign a style classname when creating that element?
Can you reference View Elements by Class in a Controller?
For instance could `<View class="box"></View>` be referenced in the controller similarly to this: ~~~ $.box.addEventListener... ~~~ Or is it required that you only use ID's to reference these?
Import in Alloy an external class
Hi there, I am looking into Alloy and I'm having a problem to import an external class : + lib/externalclass.js ~~~ var gExternalClass = { // --- global vars & flags globs :{ nited: false, }, ...
I can't get my wrapper class to work
Hi everybody. I'm having an issue creating a wrapper class. I want to create a DatePicker class on top of Titanium's Picker class. This is my class: ~~~ function MyDatePicker(id, left, top, width, height) { var datepicker =...
TabbedBar class missing on Android compile
Missing java classes for the element on APIs & 2.2, APIs & 2.1-update1. Seems none of the versions have this?? java.lang.ClassNotFoundException: ti.modules.titanium.ui.TabbedBarProxy Running the OSX version on Snow Leopard 10.6.4.
Desktop, PHP, Including class.php files and the "Kroll" namespace error
I have run into several issues thus far with Titanium Developer, but glad to say I have pushed through all my issues, and have come a little ways in the program I am developing. Ofcourse, I have run into another issue, and would like to share it / curious...
Wait my method to be done
Hi ! I repost because i fix some problems (from my last post) and i got a new prob. In my view.js : ~~~ Ti.include("class/Singleton.js"); var instance = Singleton.getInstance(); var test = instance.getList(); alert(test); ~~~ In my class...
Creating a library of methods
Ok, so I know this is more of a JavaScript question, but it's possible that Titanium Studio might have some of their own ideas (or requirements) on the best way to do this, so I hope it's okay if I ask it here. In this little learning app I'm doing, I...
how to put 2 buttons to the right nav bar?
I have a navigation bar and I want to put 2 buttons to the right side is that possible? I can see only one method that sets one button
Need to release memory? (On mobile app)
I am trying to create my app using javascript classes. When I create a class instance, do I need to release it's memory allocation when I am done with it? for example I could have the following code ~~~ Titanium.include('mysuperclass.js'); var myinstance =...
Create a new class based on View
Hi, I would like to create a new class based on view. this view will have 2 buttons, with label1 and label2. So I need something like : myNewView = Titanium.UI.createNewView({ height:"50dp", left:"10dp", ...
Ext Core and the Mobile SDK
My understand is that Titanium will get my JS code and compile it down to native code, right? So if I use a framework like Sencha Ext Core to take advantage of the class structure it provides, will all of that be compiled to native code? Using Ext Core...
Error loading up kitchen sink
Hi folks, My first time using Titanium and got everything working until I loaded up Kitchen Sink. I get the following error messages and the emulator tells me to force close the app Any advice? [ERROR]...
BUG in Mobile SDK 1.7.1
Hello It seems that the bugs signaled here, in the Q&A section, aren't very well analyzed and taken into account. Anyway, I just want to make sure this is clear: There is a bug in the 1.7.0 and 1.7.1 versions of the mobile SDK that prevents us to...
JSS Classes not working with mobile SDK 1.7.0 on Android
Hello I just compiled my application with the 1.7.0 mobile SDK, and it seems that for Android the classes are not working anymore. I have a window with a view that contains this image: ~~~ var imgIcon1 = Ti.UI.createImageView({ className:...
GPS lookup on Android does not activate
I've been looking through a lot of questions on this topic this week. So far i've not come across anything that has helped me get GPS working with my code. I've tried the ddms method and used `fix geo <lat> <long>` Updating the Kitchen Sink...
Problem with new files in Xcode when I run Titanium
Hello, I have a problem with Titanium and Xcode. I had Xcode with all File Types, but I have installed Titanium and run a Titanium Project and now if I want create a new Xcode project, I click in a "New File" but "Cocoa Touch Class",...
Trying to remove a geolocation event listener
I am managing my app using javascript classes where possible, but seem to have hit a few *geolocation/eventlistener* snags. Structure ====== I have a class file setup like this: ~~~ var MyClass = { init: function(){ // set some vars // Call geo...
Change a class dynamically
Hi, Do you know if it's possible to change dynamically the classes associated to a TabViewRow (or any other kind of view)? I have tried : ~~~ row = Ti.UI.createTableViewRow({ classNames: ['class1', 'class2'] }); row.classNames = ['class3',...
Mootools 'Class' usage issue in Android app.
Hello, friends. I'm writing iphone/android application using mootools framework (v 1.2.5) (http://mootools.net/download/get/mootools-1.2.5-core-server.js). Next code works fine in iphone: ~~~ var SampleClass = new Class({ doAction: function(){ ...
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 =...
Mootools 'Class' usage issue in Android app.
Hi. I'm writing iphone/android application using mootools framework. Next code works fine in iphone: ~~~ var SampleClass = new Class({ doAction: function(){ Titanium.UI.createAlertDialog({ ...
Ajax query is breaking due to trying to redeclare php class
I have an ajax request that requests a php script that connects to my server and returns some results [PHP code is here][1] This works fine locally and works the for the first ajax call in the titanium app, but the second call in the titanium app returns...
accessing the titanium object from an imported python module
is it possible to access the "titanium" object from an imported python module. Here's an example structure ~~~ - index.html -- <script type="text/python" src="/MainPython.py"></script> --- import...
Custom module class symbols not found
I am trying to add a custom objective C module to do some image resizing (which would be a great standard feature by the way!), but I have hit some snags. The code I am using works in my regular objective-C iphone app. The Titanium custom module...
Showing 1-27 of 27