Community Questions & Answers

Help sorting JSON

Ok, I am banging my head against the wall trying to figure this out. I'm sure it's simple and I am just too close to see it. What did I miss? This is the JSON that is received: ~~~ { "content": [ { "item_id":...

ListItem itemId Query

I know that in the docs it states that [itemId is a string](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ListItem-property-itemId) but I have been setting ItemId to be a JSON object. This works fine on iOS so I can directly reference...

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...

json parse issue

hi I'm doing json parse in project .I'm not able to print value what i'm expected. I'm trying to print the value for event id.I wrote the code like this ~~~ var eventsxhr = Titanium.Network.createHTTPClient(); eventsxhr.onload = function(e) { //...

problem with json parse

Hi, I have some problem when i'm parsing the data . Actually my json response is like this ~~~ { "count": 2, "alerts": { "July, 2014": [{ "AlertID": "1", "Title":...

problem with json parse

Hi, I have some problem when i'm parsing the data . Actually my json response is like this ~~~ response { "count": 14, "casestudies": [{ "CSID": "3", "CaseStudyName":...

Mulitple JSON request in one window

Is it possible to get multiple JSON requests by putting in one window and result it in the same window? Because I have data from one url and other data from the other url. And need to display it on one window. Say example below: //JSON REQUEST1 ~~~ url1 =...

Greek Encoding problem

Hello, i got a txt file uploaded in Development - Data Files in appcelerator cloud. The file contains json data like this: ~~~ { "title": "?????????", "info": "???????????" } ~~~ The problem is that when i...

Storing data as JSON in a file or in a database.

Hey! I'm building an app where I need to store some data fetched from a remote web service. I had planned on storing as json instead of in a sqlite database, but I'm just wondering if this is a good thing to do? There's no real reason to it other than...

Probably simple Q regarding commonjs

(Building for both Android and Iphone) Hi I am new to commonjs and this is my problem: On startup of my app, I check if I am connected to the net, if so I grab a fresh json file on a server and I set the fresh json (in "json.js"). In...

Unable to alert the distance (km)

Hi, any expert can explain to me why i will getting 'undefined' is not a function (evaluating 'e.toRad( )') ? Below is my code . hope anyone can assist me. Thanks ! ~~~ var lat1, lon1, lat2, lon2; Number.prototype.toDeg = function() { return this * 180...

writing json data

hello, i have retrieved the json data from a file which is located in assets folder (JSON.txt) ,now i want to write json data to a file(JSON.TXT) ,how it would be possible for me to do that.

146 views
asked 3 months ago by rahul kag
last activity 3 months ago

fetching Json file from server in alloy

hello, i want to fetch a file from a server (say http://localhost:8080/test/data.json), i used Ti.Network.createHTTPClient() methods to bring data like open(), send(),onerror(),onload() but it is not working. so IS it also neccesary that from server side...

Integration with WordPress

I am developing a application for iPad from which my user will post data to his/her wordpress blog. How can i achieve this. In Google i found some resource regarding this integration but as I was new to Titanium, I am getting confused with those resources....

Autocomplete with AJAX?

Hi guys, I googled a bit around and I saw that jquery was supported in Titanium Mobile in the past and of course still is inside a Webview, which would also work for my problem, but maybe there is another solution for this task: I have a database which...

Working with JSON data

How to get data from JSON structure data? ======== Actually, I'm working on getting a pack of locations based on the input address using Google Geo location API. I did get the package return from google API as JSON data, but I have no idea how to execute...

send form fields variables to JSON webservice

I need to send form fields variables to JSON webservice, how do I do that? here is my code building the form fields... ~~~ var complain_form2 = Ti.UI.createWindow(); var scrollView = Ti.UI.createScrollView({ contentWidth : 'auto', contentHeight :...

get the selected value in a picker

I am trying to get the user's selected value from the picker, but actually my picker has some parameters to make the text centered in a label in it, so how do I get the select value my picker code is here ~~~ var transformPicker =...

Problem with JSON on Android

Titanium SDK : 3.2.3 Platform version : Android 4.2+ Device : Android Emulator Hello, I'm currently developping an iOs/Android application and have trouble with Json. It works perfectly fine on iOs but i can't seem to figure out how to make it work for...

Problems With JSON Parse

Issue: When running parse get "Uncaught TypeError: Cannot read property 'TYPE' of undefined" Code ~~~ var xhr = Ti.Network.createHTTPClient({ onload : function() { // Ti.API.debug(this.responseText); console.log("Start " +...

variable null outside function

Hello, I'm very new to titanium and javascript so please excuse me if my question is a simple one. I have the following lines, can someone please help me understand why console.log(arr); gives me a null value. ~~~ sendit.onload = function() { json1 =...

Showing 1-50 of 869 1 2 3 4 5 618