Community Questions & Answers
406 Not Acceptable - xhr image upload to rails
I had received every response code imaginable, and tried every javascript syntax I could come up with. It turns out that a JSON header cannot be used to upload the file to Rails. Using a multipart header, it is pretty simple to configure once you get the...
Desktop Using C++
Hey, So I just figured this out today and thought I would share my findings. I've been trying to figure out how to create my own c++ modules and use them within desktop for a while. Behold, python + ctypes. You can create your own dlls, or use shared dlls...
How to verify Admob is working?
I am using the Ti+ Admob module. After successfully loading the module, the console is showing "Unable to fill ad request. This is a common situation." I tried it a couple of times, thinking it might be due to no ads being served at the moment,...
Xcode 4 issues all sorted out?
Hi, I'm wondering whether it's safe to upgrade to Xcode 4. Theoretically it should work - I realize that. But I haven't seen any forum comments from people stating that *it's actually worked for them to package, compile and distribute*. Any experiences to...
How to pass a variable to another windows when button clicked
Hi, I have a main window that contain some text field and a send button, I want to pass the content of the text field to another window and show it when the button is clicked. I did'nt know how do make it :( can you suggest me some tips plz? thanks in...
What layout engine is used in Titanium Mobile?
What is the layout engine used in Titanium Mobile to parse DOM and render CCS3?
CreateButton BackgroundImage sizing
Hi, I am trying to set an image for a button which size is smaller than the image width and height. I would expect the image to be resized. It is resized in the emulator and on an iphone 4 but not on the iphone OS 3.2. Any clue ? example code I use...
Why can't I add more than 1 fields in the database ??
db.execute('CREATE TABLE IF NOT EXISTS UTENTE (ID INTEGER, USER TEXT, PASSWORD TEXT, IDDISPOSITIVO TEXT)'); I use the code above to create a table in my database but it doesn't create all the fields i specify above... it creates a table with only the...
Create a tour with scrollview???
Hi guys! I make a part of my first aplicacion. My intention is to show a small tour with images to explain how does the aplicación.Will be 4 images, and the user must swipe to the right to see the images.I'm not sure how! ScrollView? swipe? I'm confused!...
Problem with separator width - Android
I'm having a problem with the separator for a tableView on Android devices. Due to the scaling automatically done, the width of the separator fluctuates between 1 and 2px. I know I can change the anyDensity property in tiapp.xml to true like...
Passcode Similar To iPhone Passcode?
Hi All, In iPhone, there is this passcode window when you set to lock your phone. Is there a similar window or control in Titanium? I'd like to implement the same and was wondering if do I need to create it from scratch?
Titanium.Process documentation and implementation
I don't know who wrote examples for Titanium.Process.Pipe or pipes implementation but they look like some kind of joke. Seriously. This one don't even compile and array is used as process object: ~~~ // Reading the output of a process using the read...
Build and barImage
when i build my app and tested in my iphone in the starting of each windows the default iphone blue bar before my barImage png. How i can solve that ? Thanks
Implementing An Update When Rows Are Re-ordered
Hi All, Been scratching my head with this.. I have a table that I display in a TableView. The rows can be moved and rearranged. To persist the new arrangement, I need to save the changes back to the table. The table has a field named rank. Initially, the...
Here is a good beginner Tutorial
Here is a good tutorial to guide you through starting a desktop and mobile app if you're a Titanium Appcelerator beginner:...
Change text color based on value
My label text comes from a remote JSON feed, and I want the color of the text to be different based on whether the data contains a minus symbol or not. In particular how would I go about identifying if the '-' character is present. Thanks for your help !
upgraded now app wont load
I recently upgraded my iOS to 4.3 and my titanium to 1.6.2 now my app wont load. I get the following error ~~~ [INFO] Compiling JavaScript...one moment [INFO] No JavaScript errors detected. [INFO] One moment, building ... [INFO] Titanium SDK version:...
Importing data or database via USB from a PC
Dear all, I'm considering a project where people can take some specific data (Please forgive me for being cryptic) from their PC's to some random location on IPAD. Now, this should be simple for the user (for the record, I don't care how difficult it is...
Running KitchenSink on actual iPhone?
I want to install KS on my phone for easy reference, but the iPhone registration screen doesn't come up (it does for my own app projects). Is installation prohibited or something?
App build on iphone
Hi, I build with sucess my app in my iphone but barImage are invisible ( when i teste with simulator it's work well ) thanks advance
TableViewRow with two lines -- labels overlap
I am trying to display a simple TableView with two lines of text on each row using this code: ~~~ var row = Titanium.UI.createTableViewRow({ height:'auto', layout:'vertical' }); var title = Titanium.UI.createLabel({ ...
FileNotFoundException for app.js when submit to Android Marketplace
I have an app that works great on iPhone and also works perfectly in the emulator for Android. Unfortunately I don't have access to an Android phone right now to load it on for hardware testing. When I submit the .apk to the Android marketplace, I receive...
Tibar on iOs 4.2
Hi everyone, Tibar , (Zbar integration for appcelerator) requires iOS4.1, so my question is: will that work under iOS4.2 devices (in product)? happy coding..
Top bar in iOS webView
Hello everyone, does anyone know how can i remove the topbar that the webview element has in iOS (iPAD)
Refresh table rows with new data from JSON
I have a 5 rows populating from a JSON feed : http://pastie.org/1850558 This is working. I have created a button to refresh the data from a different feed, but its adding the new data to 5 new rows giving a total of 10 rows instead of replacing the...
Send image through socket
I am writing a small HTTP server socket in Titanium. The problem is I do not manage to read an image from file and send it through the socket. It always comes out some bytes short for an unknown reason. The image itself causes the iPhone simulator to beep...
How to Change the Default (Blue) Color of a TableView Row When Selected
Hi All, How do I change the default color of a TableView row when clicked/selected? UPDATE: Found it. Set (any of) the following properties of the TableViewRow object: selectedBackgroundColor selectedBackgroundImage selectedColor selectionStyle
Howto implement
SUBJECT: Howto implement "fly-in from right" transition? As soon as a menu button is clicked, the view on top should transition to the next view with a "fly in from right" transition in my app. On the bottom is a menu with buttons,...
hasCheck appear in TableView on event
I want to know what code i can write in tableview event listener from that "hascheck" property appear in row of table while click on tablerow.
Top-Level Windows
In the Desktop API Docs: Titanium.UI.createWindow: http://developer.appcelerator.com/apidoc/desktop/latest/Titanium.UI.createWindow-method.html EDIT: Guess I can't post links: it states: > If this function is called outside of the context of a...
On form submit check if connected to wifi
I have built a form and on submit (button click) if wifi is not visible/available I would like an alert to pop up to say it is not available which prevents the data being sent to a server. If wifi is available and connected I would like it to continue with...
iPhone Background GPS Methods?
My team and I have been trying for weeks to get background gps on the iphone to work and we just can not figure it out. We do not know how to have the app continue gps tracking when the phone falls asleep or goes into the background. The apps starts...
map.setLocation error and crash with long/lat as variable
Searched the forum, but didn't find anything about this: I want to open a map and have it center on the user's current location. But when I use setLocation, it triggers a NSException error and crashes if I use a variable to define the long/lat in the...
Titanium 1.2.2 can't find adb
I've just installed Titanium on my Mac, and it wants me to tell it the path to the android sdk in the Profile page. I navigate to the sdk folder, but Titanium complains that it can't find adb or android. android is in the Tools folder where it is...
SQlite SUM query
How do I use SQlite SUM? Or more specifically, how do I access the sum. What I have tried is: ~~~ var itemRS = itemdb.execute('SELECT * ,SUM(qty) FROM items'); var itemQty = itemRS.fieldByName('qty'); ~~~ The items table has the 'qty' that I want to...
Pulling examples out of Kitchen Sink
Hi All! I'm trying to learn Titanium and have followed some of the basic online courses and want to try using samples in the kitchen sink, but I feel like I'm missing something. I keep hearing about "pulling examples out of the Kitchen Sink project...
currentTab.open not doing anything
I have a simple button which is added to the title bar of the tab group, in order to load an "About" page. The code is as follows for the button click... ~~~ aboutBut.addEventListener('click', function() { var aboutWin =...
Iphone:Restricting Image Dragging Area
Hi I am willing to restrict Image Dragging area. on Touchend event I am trying to reset the coordinates of imageView but they are not resetting at all. Do I need to some refresh or some other function? Thanks
Question about Titanium Desktop, HttpClient, and SSL
I'm using Titanium Desktop and am downloading a file from a website that requires authentication. I'm using HttpClient, and I have it working just fine. The problem I have is if I'm downloading the file from an SSL encrypted website. If the site has a CA...
Urban Airship Module Documentation
I downloaded the trial for the Urban Airship Plus Module and I am I can't seem to find any documentation whatso ever on implementation. I looked on the wiki and they have a few push notification guides but they are not for the Module, only for the...
Desktop - Can I set the useragent for the main view
I know I can make HTTPClient requests in desktop and set the useragent, but is there anyway to set the useragent that the default desktop view will use? Worst case I assume I can re-build the Titanium fork of WebKit? Thanks. Shaun
What docs am I missing?
I'm just getting started with Titanium, and wanted to add a button to the left of my title bar. I found the answer via these forums (use setLeftNavButton) but when I searched on setLeftNavButton in the API docs I could find no reference to it. Are there...
ANDROID FREEZE ON SPLASH SCREEN
Hello, I have a big issue with my current project. I can launch it in the iphone simulator and everything is OK. But when i try in android simulator i just have the splash screen and then in log mod i can't see a lot of message like: [TRACE] D/dalvikvm(...
setContextMenu causes application crash.
I'm working on a problem where calling Titanium.UI.getMainWindow().setContextMenu is causing my application to crash. Here's the scenario: 1. User right-clicks on an element. 2. I create a new context menu via Titanium.UI.createMenu() and add a few items...
HTTPClient with PHP and MySQL workshop example not working?
Hi, I'm very new to appcelerator and mobile development and would appreciate any help you can give me. I've just tried to follow the workshop example to make a very basic app with register and login screens...
Problem with INSERT into SQLite Database
Hi everyone, i hope you can help me with this. I'm trying to do an insert in my database SQLite rescued by JSON data like this: ~~~ for( pos=0; pos < json.length; pos++){ theData = db.execute('INSERT INTO information (cat_id, stock,...
Date problem
Hi, I have found a strange problem (tested on simulator (french) with sdk 1.6.2) ~~~ var d = new Date(); var curr_date = d.getDate(); var curr_month = d.getMonth(); var curr_year = d.getFullYear(); Ti.App.date2use = curr_year + '-' + curr_month + '-' +...
FYI: Twitter login oauth
Hello Since twitter's authentication screen has changed a few apps have crashed. I have worked a bit on fixing the oauth adaptor to get it working. I thought to help some people out I would post my working code: I used...
how to bebug application into Titanium ?
Hi, I have started learning titanium framework.I was making application into iphone.I have made application and assigned breakpoints to it for debug, but somehow debug was not working.... I have downloaded titanium developer tool and started launching of...
Flickr json call
Having trouble making this json call work. Totally new to json is probably the answer but perhaps someone can help me out? --- // Create variable "win" to refer to current window var win = Titanium.UI.currentWindow; // Function...
Showing 34,551-34,600 of 48,779 1 … 687 688 689 690 691 692 693 694 695 696 697 … 976