Community Questions & Answers

How can I search by a name?

I'm trying to get all videos from a youtuber channel and search for name of description I already get all the videos and stuffs with an URL to YouTube API but my question is... how can I search the description off all videos to match with a name that...

Parse and xml to an array

Hey people! I need some help. I must parse an online XML document and put the elements of each item in an array. I'm trying to do it but when i do `data.length();` it is 0. ~~~ function parsear() { var data = []; var xhr =...

Sort arrays on Android

Hey i am trying to sort an array on android (on ios it works like a charm) Example: ~~~ var ar = [1,3,7,3,5,7,3,24]; ar = ar.sort(sortafterDistance); Ti.API.info( ar ); function sortafterDistance(a, b) { return a.distance -...

Alloy - un-executed function

Hi everyone, I started using Titanium a week ago, and I have a problem with my first try ! I created an alloy project. The goal is only to print a table with the result of an sql request. The problem is that I don't know if my js function is ok, because...

RUNTIME ARRAY

Hi Everyone...!!! I have a small scenario and I'm struggling a lot with it as I'm new to titanium.. I have got a textfield and I want to store its value on button's click everytime in an array and that to into the system memory using the...

array addeventlistener

Hi, folks I want to add eventlistener to array.but I write this code.it cannot work? ~~~ var content=[]; for (var i=0; i<7; i++) content[i]=Ti.UI.createView({ //some code }); content[1].addEventlistener('click',function(){ alert(i); //or open...

Array Events

Hi folks,I m using Ti 3.0 and developing ios 6 and I want to add event listener my array.I m newbie I tried many way.where I add event listener? ~~~ menucontent[0].addEventListener('click,function(e){ //some...

How to change image with animaton?

Hey everyone! So... I'm trying to do some visual effect when I touch an button... my button is a view( Ti.UI.createView ) and I want to change his image with animation... I want to run over an array of images when the button is pressed and display all...

Javascript Arrays

Application type: mobile Titanium SDK: 3.0.0 GA Platform & version: iOS, Android Device: iOS simulator, Host Operating System: OSX Lion Titanium Studio: Titanium Studio, build: 3.0.1.201212181159 Hi hope someone can help me_ I am trying to create a...

getting data from one array to the another array

I need to take the data from the dataArray and get it in the resultArray using the filter StateName dataArray has all the correct data in it just not pushing anything to the resultArray ~~~ var sendit = Ti.Network.createHTTPClient(); sendit.open('GET',...

Array not returned properly

I am returning the array using a function in titanium.There are two entries in my array which are showing alert but when i access the returned value in another js file.It only show one value in alert Here is my code (it is in db.js): ~~~ function quizfun()...

Android App - Get my array to show

Application type: mobile Titanium SDK: 2.1.4.GA Platform & version: Android 2.x Device: Android Samsung Galaxy S3 Host Operating System: Windows 7 Titanium Studio: Titanium Studio, build: 2.1.2.201208301612 (c) Copyright 2012 by Appcelerator, Inc....

remove duplicate years from array

I have an array with duplicate years in it. example 1997 1998 1998 1999 2000 2001 2001 2002 I would like to create a new array with out the duplicates. Is this possible?

TiBlob to Byte Array

I have seen this question asked a few times, but no definite answer. I am attempting to send an image to a MS (Soap) Web Service, and the service requires files to be sent as byte arrays. Is there a way to convert TiBlobs to byte arrays? [Relevant Code...

Android crash error

Hi, Some user is experience this crash: --- java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251) at java.util.ArrayList.get(ArrayList.java:304) at...

How to add an animation to items in an array?

I want to add an animation to the views stored in an array. But when I try I don't get any result. And want to move them to the left when I push a button in the view. For some reason it doesn't work if I change the 'left' property of 'win2'. Also...

Showing 1-50 of 200 1 2 3 4