Community Questions & Answers
Filling textfields causes crashes
Hello everyone. I created a function / class called Row which creates a view that contains a lable and a textfield. ~~~ function Row(rowName, additive, additiveValue){ var row = Ti.UI.createView({ height: 65, top: topPadding, width:...
Access value from textfield through a loop
Hi, I am generating through a loop my textfields on a scrollview ~~~ var view = Ti.UI.createScrollView({ backgroundColor: '#3e3e3e', opacity: 0.6, left: 5, right: 5, top: 55, bottom: 5, zIndex: 1, contentWidth:'auto',...
DATE PICKER VALUE
Hi...!!! I have got a small problem in my app, please a have a look and see what can be the solution. I am creating a "DatePicker" in my android app and on its "change" event listener I am trying to alert the value of picker but what...
How to set child node attribute value of XML??
I have XML response. after change the value i want to save that attribute value. how it's possible???
Update the label value problem
**Application type:** mobile **Titanium SDK:** 2.1.3 **Platform & version:** iOS 5.1 **Device:** iOS simulator **Host Operating System:** MAC OS **Titanium Studio:** build: 2.1.2.201208301612 Build: jenkins-titanium-rcp-master-232...
Simple Counter/Timer with setInterval
Hi! im trying to make a simple counter with the function setInterval. I can't get to figure it out how the seconds and the minutes could work together. The first 60 seconds the minute counter skips, it just stays on 0 until the next round 60+58 seconds it...
Picker values initialized to null
Hi, in my App I use several pickers. My problem is that they have only the **change** event I can use. In many of my pickers the initial selected value is the one the user wants and does not change something. Therefore i get no change event. But then I...
Date Picker Value
I have created a modal window that shows a date picker on iPhone and allows the user to select a date. I have this all working, but needed to put in a piece of redundant code and I am not sure why . below is the complete code of a window definition that...
Value of slider in Android is ignored!
Hey, I created a slider with a default value of 50. In iOS everything works fine, but on android it seems to be ignored. Here is my code: ~~~ var rotateSlider = Titanium.UI.createSlider({ bottom: 52 * ovenScale, min: 0, max: 100, ...
How to pass JS object by value, and retain its methods?
Hi everyone, I'm developing a program which generates a layout view using web services, and then applies that view to every row inside a TableView. The problem is that the generated view is passed by reference and when I use it, all the rows have the same...
Time Picker's default value is unable to be set
I found the default value of the Time Picker can't be set. I thought it might be something wrong of myself, but I was surprised to see the time picker example of KitchenSink had the same issue. ~~~ var win =...
Create variable name from value?
I would like to create a variable name from a input value. For example if I had param['kitchensink'], I would like to create a variable called pp.api.data.kitchensink, so I could do something like pp.api.data.kitchensink = results. I know in other...
Date differens
Hello. I need to get the differens between two when choosing from a picker. This is my code: ~~~ var pickValue = 0; picker.addEventListener('change',function(e) { pickValue = new Date(e.value); pickValueMonth =...
Android doensn´t get values from object (iPhone does)
Well in iPhone i have this code and when i make SettingsIni as a SettingsTab object, i can instance inside SettingsIni for example datos.myvardata (that´s a int variable), i mean i can get values from another object but in android i try with debugger and...
Get values from input textfields in Custom Table View
I have a custom table view that lists a label and a text field for each row. Its currently a simple form that will grow to be more complicated as I learn more about Appcelerator. What I'm having trouble grasping is how I can GET and Save the values of...
Get value of multidimensional array with string variable
Hi, i have next code: ~~~ var gasolinerasArray = new Array(); for (var c=0;c<gasolineras.length;c++) { gasolinerasArray[c] = { 'id': gasolineras[c].id_gasolinera, 'provincia': gasolineras[c].provincia,...
How to detect the user changing the value of a Slider
I would like to detect when the user has changed the value of a slider. The slider is also updated dynamically and the 'change' event on the slider is fired on every update. I only want to detect when the user is making the change to the slider.
TimePicker - setSelectedrow () ?
Hey all, I wish to set my pickers time (Not a default.) to a specified time once a user has clicked an option on the list. For example; if the user pushes 4:00 AM, I want the picker to display 4:00 AM, if they select 10:00 PM it'll display 10:00 PM I...
get value of var inside function
Hello! I need your help guys!! I created a table view with text fields for a login window. But How can I get the values of the fields outside the functions? Thank you very much!! `inline code` var win = Titanium.UI.currentWindow; var tabGroup =...
i Need read textfield.value and pass to array
hey guis i need put a value into a textfield on a tablerow and then push to array here is the code to send a email /// http://pastie.org/2630163
Passing a value from a modal window to the parent
Hi, If I have a variable with a value in a modal window and I want to pass it to the parent window,for example: //In the parent I call the modal w.open({modal:true,modalTransitionStyle:style,modalStyle:presentation,navBarHidden:false}); //once in the...
alternate TableRow search interface
Is there a way to interface with a TableView search besides a SearchBar? It works so nicely that I hate to re implement it. Basically what I need is to feed a selection from an input object to search. I triedto interact with SearchBar.value but it always...
A simple contact phone picker
Hi everybody! I had browse around the Q&A service trying to see some sample code or anything that brings light to this simple problem. I need to show the contact picker and get the phone but can't get this...
How to get Firevent to return data to the View?
Hi everybody. I have a simple html interface for my application that i use to call a fireEvent in Titanium. Everything is working but i have a couple of issues that doesn't work, for example, how can i return a value to the interface from the...
TableViewRow read row value
I create a TableViewRow object with a number of rows. Everyone is assigned with value. When any of them is clicked, can I access the value of the clicked row?
How to parse a XML String and get only one value
In fact i succeed to get this XML String :...
Get date and time from picker then save to DB as TEXT?
Hi Guys. Im using a Date & Time picker to allow the user to set a date and time. This works fine. Im then using this code to pop the date and time into a text box ~~~ picker.addEventListener('change',function(x) { datetime.value =...
Possible to animate sliders as I set their value?
Hello, Is it possible animate the movement of a slider? A simple mySlider.value = 123; yields the slider snapping to position - I'm looking to animate that process. I've tried several things without success. I wrote my own function and it works but it's...
how to access value to inside of scrollableview ?
At first I really thank to you, Andrew and Martynas, who gave me an answer to my last question. I couldn't find any properties or method to access value inside of scrollableview. Is there any special thing like 'rowData' at scrollableview? Here is my code...
How to get value from tableview
I've succeeded to get values from table in case1 below. But I have no idea how to get values in case2 There must be some mistakes but now way to catch it, cuz I am not an experienced...
putting integers into textfields
When I have 2 text fields and want to put the (integer) value of one to an other (e.g. on blur) it is not possible. When it is a string, it does work. Now I have worked around this (see example). But is there a better way to do this? Is this a...
Setting default value on TabbedBar
I can't figure out how to set the default active item on a Tabbed Bar... I know this must be a pretty basic thing to do, but I've scoured the docs and seen nothing.. Here is my tabbedbar code... ~~~ var tabLabels = [{title: 'All'},...
Getting a Picker value
iOS SDK 4.2, Titanium SDK 1.5.1 Is there any way to retrieve a Picker's value, without using change on it directly? I want to be able to hit "return" on a keyboard and get a Picker's value. The only thing I can think of is to `fireEvent` the...
xhr null value
I am getting null value for `xhr.open('POST','http://www.inetwebdesign.com.au/email.php');` and `xhr.send(data);` and i dont know why or how to fix it **my first code was ** ~~~ // // // RSVP response via HTTP POST to php script on server // var...
Passing variable to menu
How do I pass a variable through to the menu... `var win2 = Titanium.UI.createWindow({ title:'Any Lists', backgroundColor:'#333333', tabBarHidden: true, url: 'mainmenu2.js', navBarHidden : false });` In the mainmenu2.js I need a...
Textfield.value = null - even after filling it in
Ok strange error here. I have been using Titanium for sometime now and this is the first time i have ever seen this happen. I have a Textfield in a window that asks me to input a username. When I click done it my code should process that username. ...
Possible to set the search value?
I just noticed that when searching a tableView the search is case sensitive. There doesn't appear to be a property to change this behavior, so what I'm trying to do is use a change event for the searchBar to listen to the user typing something, then make...
textarea pasted values problem
in the Titanium Desktop when I paste items into my app's textareas the formatting looks great. When I check the value of the textarea, ala: ~~~ var v = document.form1.textarea1.value; ~~~ then the value comes back with all linefeeds(n) removed. If I add...
How to store and update a value that is persistent thruout the whole app?
Hi, I have this code, it opens a book when on one of the coords. However I need to be able to change a value for every point/book. Opened, true or false, Based on whether it has already opened once. I tried to update this value in the database, didn't...
Showing 1-39 of 39