Community Questions & Answers

RSS Feed in a window

I'm a new app developer who's developing a basic tabbed Android application with JavaScript using Titanium. I'd like to include an RSS feed on one of the main tabs' window. I've done my best to try and have a go, but the app won't run and given I'm pretty...

Scroll Bar using Javascript

I'm a new app developer who's in the process of creating an Android application using Javascript. There's an image with text on it which doesn't fit on the whole window without the text being unreadable as it's squished. I would like to introduce a scroll...

Geolocation mistake

I have an application that shows my position on the map correctly, and sends locations ro server at each 10 seconds. When I try to restore the path by reading these positions from database, nothing corresponds to what appeares on the original map. If I...

Error on xhr.send

I have this code which gives me the error: function connectServer(lat, lon, ddmmaa, hhmmss) { var url = 'http://www.npctech.net.br/teste_insert/insert.php'; var xhr = Ti.Network.createHTTPClient( { onload : function(e) { ...

Configuring app for different devices

I'm a new app developer and I've almost finished developing my first android app using Titanium. I optimised the app for my own phone - in other words I altered the positioning of buttons/images etc so they fit properly on my phone screen. I (rather...

Hyperlink text in Titanium

I'm pretty new to app development, and I'm creating a tabbed Android application. I'm trying to carry out what I suspect is a very simple task in hyperlinking some text. I would like to create a label such that when the text is clicked, the website opens...

JSON Looping

Hi I was looking for a hand. My code is getting undefined and I don't understand why. I'm trying to loop through all elements in obj then in recent then the columns and their content. I was trying to use the code below and I tried a few things from...

Titanium Database Confusion

I'm fairly new to Titanium development (but not Javascript) and unfortunately inherited a very complex application right before another contractor was let go. This is an iOS application. My question, and confusion, stems with how the databases in this...

how do i handal this kind of response

Hi all i'm getting response like this from back end ~~~ {"model":["dfsdf","dsfsdf","eretrt"]} if it has multiple values it is coming in the from of array and if it having only one single string am getting response...

Trouble pathing in require method

Hi people! I had trouble linking the js file into the require method. It gives 'Uncaught Error: Requested module not found' error. I also tried cleaning the project and it didn't work. It would be great if you can guide me along! Many thanks! :) Here...

Javascript - Garbage Collection

I'm a bit confused here: 1. Global variable will stay in memory even if it will not be used anymore? For example, in app.js: ~~~ var foo = Ti.UI.createView(); //something else. the foo will never be used again. ~~~ So the variable foo and the view it...

Array objects

var users = [{id: 1, price: 50}, {id: 2, price: 20}]; var comments = [{id: 1, comment:'"test"}, {id: 3, comment:'check'}]; how can compare these array using id,,,i need to find out id not in comments array i am new in java script ,,plez help

Variable in AddEventListener

Hi guys, I got a quick and newbie question on variables in javascript I was wondering is it possible to get the updated value in a whenever I scroll the scrollView? Many thanks! Code example: ~~~ var a =...

Javascript: which is the utility behind prototype?

Hi, I've some doubts about prototype function in Javascript and its benefit also because of the books I read that make simple and silly examples about its usage. What is the utility to write in this way: ~~~ function Person(firstName,lastName) { ...

TableView data not showing

Hi, I have some code which is supposed to show 2 rows of data with an image and 2 labels but when I run the code the text and images don't show up. Here's the code: ~~~ var tableData = []; dataArray=[{title:'Watch Dogs',...

Showing 1-50 of 928 1 2 3 4 5 619