Community Questions & Answers

Download File from dynamic url

Hi everyone, hope someone could help me. Here's the issue: I have an URL like this "http://site.com/imgsrc/getimage.php?id=JK2Q", and if I open that url in a browser... I get directly the download of an attached image, because the headers are...

DB caching issue

Hi, I have two windows, each opens by it's tabs. Both windows has table views and data is driven by two tables in SQLite Database. Once i go to first window,(default) i need to do some operations and that will effect the data in the window 2. How ever...

empty textfield doesn't fire onblur

I am building an app for iOS using alloy. I have a list where the user can add a name to each row or leave it blank. I use an "onblur" event to save the name in properties. So far so good. They can add names and change the names, but I...

Overlapping modules using require()

I have an application for iPhone with three categories and each category shows a list of stores. I have defined each list of stores in a .js file. Files are called shops.js, food.js and art.js. Then I have three buttons that when pressed, load each of the...

Javascript - Garbage Collection

I'm a bit confused here: 1. Global variable will stay in memory even if it will not be used anymore? For example, in app.js: ~~~ var foo = Ti.UI.createView(); //something else. the foo will never be used again. ~~~ So the variable foo and the view it...

compile to mac app store?

Can the current version of Titanium compile apps for the Mac App Store? My prospective project is going to iOS, Android, and the Windows Store. It appears that a previous version (1.x) of Titanium did this, but it's not clear if that's the case any longer.

Remove Android ListView separator

Is this possible? Would like to remove any sort of separator between my ListView rows. Surprisingly haven't found any threads on the topic... Looks like there is an iPhone specific way to do this via separatorStyle. Thanks!

CommonJS module

In my module there is a function that needs to be exposed and used internally. Here is what I do: ~~~ var foo = function(){}; //to expose exports.foo = foo; //to use internally foo(); ~~~ or more simple: ~~~ //to expose exports.foo =...

Cross-platform Window.setTitleid()

I need to dynamically set title of Window using i18n. I find the JS method works for Android but no effect on iOS. Tried both before and after opening the window. Any known trick? My environment is: Titanium Studio, build: 3.4.0.201406111251 Ti...

mouse cursor not showing ?

Hello I've problem in android KitKat the textfield cursor not showing at all , but on ICS its showing , this is my code ___ <TextField id="username" autocorrect = "false" keyboardType =...

Ti.UI.CreateTextArea not editable in 3.2.3 GA

I'm using Ti.UI.CreateTextArea with success in 3.1.3 GA (iOS SDK 5.02). No problems with this functionality. I can edit, pre-populate, and save without an issue. In testing with 3.2.3 GA and OS SDK 5.11, I lose all functionality of the textareas. They...

navBarHidden not working on Android

I recently moved my project to a new folder and renamed it (changed the name in manifest, tiapp.xml and .project). In the old project the nav bar is hidden, but in the new it isn't. The code is 100% the same. Any help?

Can't Login

I run appcelerator.. it *forces* me to login, but then throws an error when I enter my email and password. "The login server returned an error,.... etc" Read this http://docs.appcelerator.com/titanium/latest/#!/guide/Errors_Logging_In I can...

iOS tabGroup changes colour

Hi all, I've found an issue I've not come across before, and I'm at a loss as to how to deal with it. I have a simple app that includes tabs and a map. Everything works fine until you go to the map, at which point the tabs change colour. Once the tabs...

longjohn Bad Argument error message

Hi all, I've made the last titanium update (Titanium SDK 3.3.0, CLI, Node.js etc), configure my project to run with the last sdk and since when I try to run my project I've the following error message...

HTTP client not working asynchronously.

Application type: mobile, Titanium SDK version 3.2.3.GA, Platform : iphone, Device: ios simulator 7.1 and ipad version 7, Host Operating System: OSX 10.9.3. I am asking question on Q & A for the first time so if I miss out on anything, please excuse...

label height

Hi I am having problem with label text align.The text is printing fine and my problem is after completing the one line the other line is starts with out having much space for both line . I need to arrange the lines with having some space for other...

Alloy, custom tableView

Hello, I am using alloy framework and I fill tableView with dataCollection. Im using sdk 3.2. I have 2 tableViews. first is parrent table and another child. So in parent table I want to have a field which describes quantity of the rows in child table. For...

Customize Webviews

I have created a web view in my app. I want to customize this web view to only display things that I want (to hide everything else), and to change the webs background colour and such. Any way to do this?

Titanium.Media.AudioPlayer format support ?

my real goal is , i don't want my original songs to be played by other music player apps on user's device , only mine . so i came up with the simplest idea , changing the audio file extensions to some unknown(like m3p/4gx...) so other music player may not...

Problems after importing widget

I am trying to implement a facebook type slide menu. So i am making use of this [widget] (https://github.com/dharmik/Slider-Like-Facebook-working-in-both-android-and-iOS) . After i import my widget all works fine when i test it on an android tablet/ ios...

How to attach SQLite databases?

I am trying to create a separate db to save favorites, so that when I update the main database that it the favorites are not written over. Also, I want to save favorites and notes to cloud. I have been trying the following along with several variations...

Android Cloudpush min sdk undefined

After upgrading Ti again, I get the below error message con compiling my previously working app [ERROR] : Found incompatible Titanium Modules: [ERROR] : id: ti.cloudpush version: 3.3.0 platform: android min sdk: undefined How to rectify?

Maps API checking location over and over?

I have an app using Google Maps. Titanium 3.2.3.GA There are a couple places I call the geolocation services to get the users position. And the map itself is going to make some calls. But in an idle state, I am finding that the device continues to poll...

Showing 201-250 of 62,383 1 2 3 4 5 6 7 8 9 101248