Community Questions & Answers
Child tableview doesn't still checked
Hello, I'm using a tableview for show some others tableviews (It's a podcast window) and i'm using hasCheck for know what podcast is playing. When I play a podcast (in the show's child window), going back on shows list and return to the show I'm playing,...
Count the amount of child nodes in an XML node
I am trying to find the amount of child nodes in the node "page". Then loop through them and get the values to display some content on my app. I can't for the life of me figure it out though... ~~~ <?xml version="1.0"...
Show childtable master-detail screen
Hi, I am trying for a while now, but how do i get a child table in the master-view after clicking an option in the parent-table in the master-view?? With Titanium 1.8 i used test:'bla.js' but in the latest version 3.0.2GA the template is complete...
Removing all child objects from a view
I am trying to remove all child views from a parent view (possibleTagViewArea) using the following code: ~~~ if( possibleTagViewArea.children ){ while( possibleTagViewArea.children.length > 0 ) { Ti.API.info( 'Number of children: ' +...
ScrollView Children
Hello ! i would like to remove the Children of my ScrollView . ~~~ var ScrollView=Ti.UI.createScrollView({ contentWidth:320, contentHeight: 'auto', width: 320, height: 365, top:0, layout:...
Reach Parent Object From Child Object
Hi Titaniums .. i have a group of buttons in scrollableView and i wanna made a changes on the all buttons when one of them clicked .. number of buttons not static .. this is my code .. (buttons == radio buttons ) ~~~ function...
Click filters down to child item?
Hi. I have a problem where clicking a tableViewRow causes a child item to change background color. The child item is a child of a child of the tableViewRow and changes background color when I click ANY area of the tableViewRow. Why does the click seem...
Child view will also fire "touchstart" even set it's touchEnabled to false?
I have ViewP(parent view) and a add a ViewC(childview) to ViewP, and to make ViewC doesn't fire touchstart event I set ViewC's touchEnabled to false. I want to get e.x&e.y at ViewP's touchstart event. But sometimes what I got is ViewC's...
add a child in a ScrollView at index N
Is there a way to do something like : ~~~ myscrollView.addChildAt(child, pos) ~~~ so that ~~~ myscrollView.children[pos] = child ? ~~~ Regards
Why Ti.UI.Animation does not effect View's child objects?
I'm studying Titanium SDK recently, and I found something strange. I created View and adds label, buttons, images as view's child. and I tried animate View's width and Height. I expected view's child object also animate together, but result was...
Navigation: how to return to home?
Hi guys, I'm in trouble with my app. I have a single window with a dashboard. When I click on a icon I open a new window. Then another child win etc... At the beginning I made a Navigation Group without Tabs Group as you can see on Developer Blog. The...
Android child node
Hi, I'm trying to do some really simple and yet finding it a real challenge to do! I have a window in which I have a three views. I want to remove the second view using the 'children' function. I am able to do this fine in iOS however on Android i get an...
Problem with touch events (1.8.0.1)
Hi, I have a problem with touch events (touchstart, touchmove, touchend, touchcancel) in 1.8.0.1 v8: example code 1: ~~~ parentView = Titanium.UI.createView({ width: 8000, height: 300, // etc ... }); for(i=0;i<10;i++) { childView =...
Dynamically hide parents children
I would like to hide dynamically created labels when one of the labels parents is clicked. Note the comment in the code below, it may help explain my goal. Basically, there is a main view, which has several subviews and each subview has a label. I want ALL...
Detect back from child window to parent window
If I have a parent window and a child window in iOS, can I detect when the user press back button (iphone) to return a parent window? Titanium Mobile SDK 1.6.2
TableView setting child location
I have a tableview, and I am passing data into it with rows that have a "location" parameter `{ title:'Window', hasChild:true, location:'theWindow' }` I want to have tab1 open whatever is set in "location" when the tableview row is...
Child will not close
Here I make my tableview and my eventlistener for the click. On the click it switches to the child. I have a button 'Sluit' at my child, I want that the api switches to the parent page when I click on it. But this doesn't work. ~~~ var TheTable =...
Childview will not close
I have a tableview with childs, when I click a parent it opens the childpage. But when I go to another tab and then want to go back to the parent tab it still shows the child. How can I solve this problem?
iPhone tableview hidden if child view
So I've distilled this down to the following failure case: one simple app.js - using mobilesdk 1.4.1.1 on OS X 10.6.4 - Developer 1.2.1 ~~~ var i_want_to_see_my_table_on_iPhone = 1; var mainView = Titanium.UI.createView({ width:'auto', height:'auto',...
Calling some HTML files from a single .js
Hi, I´m newbie and I´m testing Titanium. I have a list with link to others .js and it´s working nice: ~~~ var data = [ {title:'Family One', hasChild:true, test:'../test/one.js'}, {title:'Family Two', hasChild:true,...
How to have data entered in textField in one window display in a label in another window?
I am trying to get a value entered in a text field from one window to display in a label in another (its parent) window. Here's the code I have for the child window: acvchange.js ~~~ var acvEnterField =...
Android app crashing
I have been creating an iPhone app on appcelerator, and am now trying to get it to work on android as well. However, it is crashing on load. app.js: ~~~ var win1 = Titanium.UI.createWindow({ url:'contacts.js', titleid:"All...
Can not remove from View without parent
Hi, I am trying to add and then remove a ScrollableView to/from a View. It seems that it is not possible to remove that ScrollableView from a View (which has not been added to a Window). A warning will be displayed, that the ScrollableView has already...
Accessing child objects and functions inside an object.
I have something like this: ~~~ var data = []; data[0] = ... data[3] = createRowWithLabelAndTextField(rowName, initialTxtFieldText); ~~~ And the `createRowWithLabelAndTextField()` function is defined as: ~~~ function...
Finding childs of view
How can I find the child controls in a view eg. scrollview. For example how can I find all textfields in the scrollview? Edit: Something like getElementById in pure javascript.
Window Child Animations
Hey guys, How are animations on child views handled when a window is closed? Are they paused/removed or do they continue to run/exist? Thanks
How to get children of scrollable view?
I'm building a photo viewer, similar to the Photos app on iPhone, where you can swipe left and right through photos. To do it, I'm just adding an image view for each photo to a scrollable view, and hiding the paging control. However, when I change the...
Remove childs from view
Hi. I'm trying to remove the childs inside a view but I can't find how to do it. I've seen on other posts that the views have the `children` property, but it always gives me `null` I'm using Android API 2.1 and Titanium 1.4.
Click and dblclick events problem in child views
If I add a click event to a parent view, then remove the event, the click or dblclick events of the children views no longer fires. I even tried to add the click or dblclick event again to the children, it still does not get fired. Seems like as soon as...
Passing data from child window to parent
I have a tableviewrow, i added a click event that opens a new window. When the new child window is closed, i would like to pass back to the parent tableviewrow a value. How can I do this? I see how to pass data from the parent tableviewrow to the child...
Child Windows Android
Please.. Someone tell me what I am doing wrong! I am trying to create a child window inside the main window (win1). I am copying this off a youtube tutorial, the only difference is they are running iphone and I am on android! What am i missing! Thanks in...
[WARN] Orphaned child found during proxy transfer!
If my App runs on iPhone I see this warning: ~~~ [WARN] Orphaned child found during proxy transfer! ~~~ This is related to rows in TableView. Part of the rows are then situated on top of each other. If my App runs in simulator everything is fine (iOS...
Access view object from a scrollview
Is there a way to access scrollview child views object without eventlistener handlers? If i have 20 views inside a scrollview, and i need to change the child view backgroundImage problematically without clicking on it to get the source. How would i do...
get child at
I was wondering if there's a way to get number of children in a particular view. For instance, I want to get the total number of children in a scroll view then animate fade out and then delete it. Below is the code I'm trying to achieve coming from an AS3...
Android - Window inside of a Window
I tried to add a simple window inside of a window using the Android emulator on Windows Vista. Should be very easy and work. I have my full window which works great then I try to add a child window with a height and width smaller than the main window....
Showing 1-35 of 35