Community Questions & Answers

Focus on textfield

Hi, I need to change the background of a textfield on focus, and make the other ones with the "normal" background in different pages on my app. The blur can also be when clicking on anything that is not a textfield like the window for...

Titanium.UI.TEXT_STYLE_BODY in HTML

Hi, I'm using the custom module StyledLabel to create a custom Label with HTML content. I would like to be able to change to size of the text using the Text Size option in iOS 7 but the text doesn't change. I tried this in the CSS font-family:...

Cursor color in a textbox

Hi When I use textbox with a white backgroundColor, I cannot see my text cursor as it is white as well. This seems to be a problem with Android 4 and SDK 3.2.x, because lower versions did not give me this problem. Is there a way to change the color of the...

Textfield new Line

Hello, i have a text field wich is: height:'45%', width:'75%' . If the text reaches the 75% i want to make a new line. Anybody of you know how to do this? Thanks!

Calculating textfield text length

I am working on calculating the amount of characters in a text field. I am just doing this as a basic starter application after the hello world... ~~~ //FirstView Component Constructor function FirstView() { //create object instance, a parasitic subclass...

focus() not working on ios

I am creating a piece that uploads a photo with a message. After the user either chooses a gallery image or takes a photo, a textfield is supposed to focus so the user can enter the message they'd like to send. Unfortunately, the textfield focuses and then...

textfield restriction

i need to allow 8 digit decimal number. i used max length property it works fine. but issue is when i goto middle and start typing number its typing and deleting last number. for example:- 3485.213 after that textbox will not allow numbers due to...

Placing cursor in textfiled

Is there anyway of placing the cursor in a specific position of a textfield in titanium or if not how it can be done otherwise? As far as I have searched this forum I haven't found a solution to position the cursor in a textfield or textarea. Thanks Oam

window should not create multiple

I'm struck with one issue in my project.Actually i'm doing json parse in my project it's working fine, and gettting all in the table and i'm adding the table to the window. And i'm calling that json parse form text field "change" . Every time...

Textfield getting hidden by keyboard

Hi My textfield is not sliding up and getting hidden by the keyboard. What could be the reason for this? Here is my config for the textfield http://pastie.org/988526 This is happening in both 1.2.0 and 1.3.0 Here is a video of the issue...

Text and variable

Hi guys! I'm new in Titanium, so my question can be fool. I'm trying to concatenating a text from textField and a data, ie: 'My name's ' + my_name; 'I'm ' + my_age + ' years old'; How and where I do it? Thank you for your attention guys.

textField input

sdk 3.1.3 alloy 1.2.2 android Im trying to update a label when i add a number to my textField, but i keep getting 'Nanundefined' in the label instead of the number. Any help would be great. Thanks ~~~ <TextField id="servingPicker" ...

How to hide Keyboard

Hi, I'm new to Titanium and i'm tryin to create a calculator app for my own use. the problem is, that none of the default apple keyboards have the buttons i need, so i'm trying to make a custom keyboard layout with buttons. My Question is now, how can i...

Cursor does not show in textField

i have a window with two simple inputs... but when i tab on the inputs to type something, the cursor doesn't show... [Screenshot](https://www.evernote.com/shard/s36/sh/c20a5ba9-74d6-4aa3-ba7b-e285051145ed/f1941f2c21bf5b33c10d8015bdf82f0e) The source...

Showing 1-50 of 592 1 2 3 4 5 612