Community Questions & Answers
Android window focus/blur event handling diffs
I am completely confused as to how Android handles window and field focus and blur events vs. iOS. If I set up a simple window with one text input field, and set focus and blur event handlers on both the text field and the window, and just open the...
Ho wto reset the getArguments() value
Hi, I am using the Ti.App.getArguments() on the "resumed" Event Listener to retrieve data from an Custom URL handler. It Works perfectly but once I got the data from the getArguments() I want to reset the data in the Arguments. Is there anyway...
Status bar hide
Hi I want to hide the status bar on one of my screens, the splash screen, but have the status bar visible on every other screen in the application. How do I do this? Thanks
Titanium.API.setLogLevel doesn't seem to do anything
I couldn't find this in the documentation or in previous questions, although it's pretty basic: I'm debugging my desktop Titanium application, and the numerous 'debug' level log entries are making it hard for me to spot the more important ones (I'm reading...
Calculate how long app has been open.
Hi, I'm new to javascript and I'm having a bit of trouble using setTimout. I want to be able to calculate how many milliseconds the app has been in use. I have tried setting getTime() (the number of milliseconds since 1970) as a variable and then...
Is it possible to use a sprite atlas in TI?
Is it possible to use Sprite sheets (often called texture atlases), in Ti? For those wondering, a sprite atlas is an image sheet that contains a series of images often frames for a image sequence of a animated character or graphic element (for example:...
Why don't font properties work on the iPad?
I cannot get `fontFamily`, `fontSize` or `fontWeight` properties to work in my iPad app. The only one I can get to work is the `font` property, so I can change the type of font but cannot set its size or styling. This is a pretty ridiculous bug. How in...
I can't get createWebview to work
hey guys.. i'm new here and got into titanium for a week now. can u guys help me solve this problem. I can't get WebView to work. this is the code http://pastie.org/1470737 this is from kitchensink. CreateWindow works but not Webview.. thanks guys..!
new debugging system for titanium - cloudebug
The real-time, internet-based debugging system designed for Titanium Appcelerator: **http://www.cloudebug.com** --- As long as the device that is running your app is connected to the Internet - you can debug your code by using any browser, from...
new debugging system for titanium - cloudebug
The real-time, internet-based debugging system designed for Titanium Appcelerator: **http://www.cloudebug.com** --- As long as the device that is running your app is connected to the Internet - you can debug your code by using any browser, from...
Problems Showing HTML
I created an app completely out of HTML and inside CSS. The index page works lovely, but once I click on the tabs it will display the content in the specified div tag, but the backgound and header are completely white (it should be a gray background with a...
Width of content in a ScrollableView
I have a scrollableview and i want to get the views that are insite it closer to each other. This means when I'm on page 2, i what to see a part of the other pages (1 and 3) on the left and right site. Here is a <a...
remove row from tableview section
I've read a lot of threads about removing a row from a table, but none mention using the Titanium.UI.TableViewSection.remove function. There is also no example in Kitchen Sink. Can anyone provide an example of how to use...
Adding AdMob to iPhone
Hi, Is there a complete guide to how to add AdMob to iPhone? I have seen various posts but some say work and now don't. If I get it working via a module what are the chances of it breaking with future releases of appcelerator? I love the look of JS use...
External JavaScript files and variable
Hello, I have a problem, I have created an external JS file where I donwload datas remotely, in this js files there is some global var like this : ~~~ var banner2Use = []; var totalBannerDownloaded = 0; var allBannerDownloaded; ~~~ app.js use the...
Magazine viewer with ScrollableView
Hello, I have been trying to make a magazine app for iPad for the last month, but I keep having memory issues with ScrollableView (which is the best suited native control for a magazine). The problem is that I can't fit 300 imageView objects in memory,...
Button and backgroundGradient
Hello, I try to apply a gradient background to a button. But It does not work (Android APIs 2.2)... Is my code wrong ? Titanium (1.2.2) on windows XP with JDK 1.6 and Android SDK revision 8. ~~~ var testButton =...
Titanium.App.Properties (Desktop)
Hello, I try to get variables or properties global. Means I would like to set a propertie in the initial window and get it in the second window. Here is my Code: index.html ~~~<script language="javascript"> Einstellungen =...
Database go to first record
Hello, I have to make a look in a database, so I use rows.next(); And when the last row is reached I would like to go back to the first row. I have tryed rows.first() logically, but it doesn't exist. any workaround ? Thanks
use webview for only 1 domain. links go to default phone browser
i'm using webview within an app to display a mobile website. however, w/ doing this, any links the user clicks on in the website, take them to other pages, within webview. i would like to be able to restrict the webview to only one domain. is this...
Hidding the "No Image" Image
Hi need just quick help with this. I'm using XML to pull in images from a website. But as I've noticed before the image loads, it shows a "No Image" image, then loads up the actual image. Is there a way to remove or hide this? Here is a...
SearchBar Color black
Hi Sometimes the SearchBar is black, even if I selected a color. (Don't know when this happens. It's kind of random...) ~~~ var search = Titanium.UI.createSearchBar({ barColor: '#385292', showCancel: false }); var tableView =...
How to position controls and views on the screen to work with iPhone and Android?
I'm new with Titanium and was wondering if there is any way to position things on the screen that would work on any Android screen size. For example, if I have: ~~~ var btnTest = Titanium.UI.createButton( { ...
Need help Making a simple Rss feed
Hi. Can anyone help me making a very simple rss feed? I checked kitchen sink for rss.js and when I tried to use it I faced lots of errors on my test app. Hope can someone show me an initial code which I can reply my rss and make it work so I can...
trace route to help fix issue
Hi there, I have been having trouble with the emulator and the screen showing as loading. I have not uninstalled everything and followed the instructions from this site to get started. In the android sdk and avd manager no virtual device has been created...
NavigationGroup inside a Tab in a TabGroup (bis)
To follow up [101351]: http://developer.appcelerator.com/question/101351/navigationgroup-inside-a-tab-in-a-tabgroup) navigationgroup inside a tabgroup I tested the following code and it raises an very strange error: **[ERROR] Script Error = Result of...
Kitchensink contact list
I am quite new to making apps with Titanium. I think i'm getting the hang of it but there is one thing that's not going that well at the moment. I am trying to make a wordlist, for that i chose to use the contact view out of the kitchensink. What i would...
Android tabbar issue
Hi, I have a tab bar that works perfectly with iPhone. But, for the Android, inside the tab, when i click on a button that returns a window, the latter is opened in full screen mode and hide the tab. Here is the code I'm...
rightNavButton missing on ipad
i am confused. i have a simple button as rightNavButton working on simulator for iOs 3.2, 4.0 and 4.2, ipad and iphone. working on the iphone device too, but not on ipad 3.2 version. simply missing and console reports nothing strange. so anyone an idea.
Android can't retrieve my current position
Hi everybody, I'm using Titanium SDK 1.5.1 for both iPhone and Android development. I have an app that loads a map with my current position perfectly on iPhone. But, for android, nothing is showing but an error from the Geolocation API. I added my...
Disable a button on a iPhone toolbar
Hello, buttons are created like this : ~~~ left = Titanium.UI.createButton({ image:'../images/icon_arrow_left.png' }); right = Titanium.UI.createButton({ image:'../images/icon_arrow_right.png' }); var flexSpace =...
httpclient onload question
Hi there, I'm working with the httpclient but I dont get the job done the way i want. I've got a database which I want to import into the Ti Mobile app of my but because of the data its not do-able in one time. The problem I encounter is that the...
vertical layout table view
I've got a problem with the vertical layout view within a table view. After some time I finally could point my problem which can be reproduced wihin the kitchensink examples. When you take the kitchensink example of the vertical_layout_table_view.js and...
Ti.App Global Objects won't update.
Hi, I'm making a facebook chat and I'm already receiving the list of online friends, and connected to the XMPP server through sockets.... when the XMPP connects instead of requesting the roster I use Ti.Facebook to request the online friends via FQL.. at...
NavigationGroup inside a Tab in a TabGroup
My application is built as this: - a TabGroup with 4 Tabs (with windows attached) - one of the windows contains a TableView - on click on a row of this TableView I'd like top navigate to a new window >=> **create a NavigationGroup that includes the...
Titanium.Media.MusicPlayer
Hi, Does the MusicPlayer support remote streaming? Can seem to figure out how.. I've done it with AudioPlayer using the template in KitchenSink which works perfectly, but that isn't exactly what I'm looking for. I'm trying to create a library within the...
unable to package with errors
Hi guys, I've finish developing my app, I have been able to install it onto iTune and run on device all fine, however when i want to package it, I get the following errors: Error: Traceback (most recent call last): File "/Library/Application...
YQL query with open data tables crashes app
Hi all, I'm running into an issue with Titanium's Titanium.Yahoo.yql method on iPhone. I'm trying to execute a query which uses an open data table that I've built but unfortunately, it's causing the following exception: >Terminating app due to...
Struggling to get started - errors with Kitchensink and Android SDK
I'm trying to set up Titanium on a mac. I followed the instructions in the getting started videos, including downloading Apple's Xcode and iOS software, and the latest Android SDK. I downloaded the Kitchensink code from Github (2nd update), extracted it...
how to display adress like "Mountain View, CA" on a map ???
i can display addresses with Longitude and Latitude on the map, but how can i display a map of address like this "Mountain View, CA" ??? another Q: how to display a polygon on a map ?
Search bug when setting TableView backgroundColor to transparent?
I have a working tableview with a search function. When i set my TableView backgroundColor to transparent, the search results are messed up! It seems like i can see two layers of tablerows or something. Is this a common problem? I would really like to...
TextField gets focus inconsistantly.
Hi, I'm making an iPhone app, and there's a window that only has a TextField in it with some editable text. I have code that says "When the window opens, give the TextField focus". Unfortunately, the TextField only gets focus about 50% of the...
Destroy method don't work on android 1.5.1
I can use onDestroy method on android 1.4 for destroy a map but I can't use this method on android 1.5.1. I don't know if this method was replaced by other.
Scope Error
I seem to be running into a scope problem with Titanium. To the best of my knowledge the scope of a variable is the set of brackets {} in which it is declared and any nested brackets. If the item is declared in a for loop the scope is the nested...
Iphone device install Error
Hi! When I try to compile my app for device; its show the folowing error. My mac is new and it's the first time I try... ~~~ Install Error Error: Traceback (most recent call last): File "/Library/Application...
Deployment Target
Hi there, My app has been approved (w'hoo! and only took 3 days to get it approved and into the AppStore?!) however it's downloadable on all devices whereas I only wanted it available on iPhone/iTouch as I'm making a different version for the iPad. I'm...
Button Location on popups
Hi Does anybody know if Apple has a rule about placing the Yes, No and OK Buttons on popups? I didn't find something in the guideline from Apple. Thank you Felix
How can I change some php.ini settings?
Some php ini settings (level 6) cannot be changed by ini_set function, you have to edit php.ini file. For example, short_open_tag or magic_quotes_gpc. Can I load my custom php.ini file? Can I change existing php.ini file and where?
Contact Form Response Undefined. with JSON too
I am trying to create a contact form where the user can entry in a text field their name, email , subject and message. once you send it, it goes through another page with json stringify functions and then on a server will go through a $data post and this...
Showing 37,351-37,400 of 47,504 1 … 743 744 745 746 747 748 749 750 751 752 753 … 951