Community Questions & Answers

HTTPClient JSON issue

Hi, using HTTPClient, I want to send to a server side page a JSON like this with POST request: ~~~ {"key1":"string","key2":{"foo":"bar","baz":"ar"}} ~~~ I found this interesting code...

Strange issue with Base64 encoded string

I am trying to do a receipt verification for iOS. So I receive the purchase receipt no problem. I have to Base64 encode it and create an Object to send to my server with the base64encoded receipt as the "receipt-data". No problem encoding the...

Generate a menu from remote json.

Hi,I have to build a menu from the remote database API (got json answer like {'categories':[{'name':'someth'}, {'name':'someth'}]. And don't have any idea how to get this done. At my point I have to read json data to Alloy.collection and then, in view,...

Dynamic picker for Android

I am trying to make a dynamic picker which is working fine on iOS but on android there's no chance, here is my code ~~~ function showPicker(data, lbl, parentView) { var picker_view; var pickerHeight = 251; var slide_in =...

App crashing while json parsing

Hi, I have a problem in program. Actually I doing the json parse in my program. In that i'm getting lot of images as a response. Those images i'm printing in the tableviewrow . When the images are loading In the tablerow the app is crashing and in console...

Getting user details from the Contacts API on iOS

Hi guys, I've used some sample code from the documentation to get my app to talk to my contact list. That all works fine and I can see the results in the output. The problem I'm having is trying to extract the "fullName" from the loop in order...

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.

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

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