Community Questions & Answers

iOS project devoid of logic

I am working on an app which will be released for Android and iOS. So far the development for Android is going great but the iOS version is plagued by illogical errors. First off I am using Alloy with version 3.0.1.201212181159 of Titanium Studio. I am...

remove multible years from array

Hi I am creating an array with 10 other arrays using concat. The array is a list of different years. The multiple arrays is creating multiple years for example 2 1998's. How do I only display 1 of each year in my table view. Here is a...

Arrays on Android Module

Am a bit confuse with the Android Module Development. I guess the guide for develop iOS modules is very well documented, but not for Android. Am trying to pass an array property from my app,js to a ViewProxy. So in my JS I got something like ~~~ var foo =...

Simple array question

Does standard JS array syntax not work in Titanium? The reason I ask is I'm doing a simple bit of code as follows but it fails with "Constructor for "String" not found" ~~~ var myArray = []; myArray[0] = "hello"; ~~~ Thanks.

How can i reintialize Array ?

Hello, please see my code, ~~~ var arr=[]; arr.push({ title:'item1', r_id:'item2' }); ~~~ but now i want to use again this again if i push then its meaning data will be enter after arr[0], but now i want to push from zero index again, so...

Global Arrays

Thanks for the great answers here... I have a similar project, except that I'm trying to pass an array of objects, so: I would like something like: ~~~ Ti.App.friends[8342873] = { name: "Mike", age: 26, height: 6.1 } ~~~ But when I...

Global Arrays

Thanks for the great answers here... I have a similar project, except that I'm trying to pass an array of objects, so: I would like something like: ~~~ Ti.App.friends[8342873] = { name: "Mike", age: 26, height: 6.1 } ~~~ But when I...

JSON.parse on arrays

hello, does JSON.parse() support multi-dimensional objects? i can't get it to work, however, 1-dimensional structures are ok. any idea? thx, uno

Passing Arrays throughout windows

Hi, I am trying to pass an array to a new window which I "outsourced" in its own .js file. This does not seem to work for me. I can pass single variables without a problem, but no arrays. This is how I am trying to do this: app.js: ~~~ var...

Nested arrays

i Think there is a problem with nested arrays. Im using the following code, and im getting this red screen error on the iPhones simulator: ~~~ for(var i=0; i<=tagList.length; i++){ for(var j=0; j<=tagList[i].length; j++){ var text =...

Showing 1-24 of 24