Community Questions & Answers

Loop through a Json File ?!

Hey Guys, i have tried several things, but i just can't get it work... I wanna loop through my json data with a recursiv function. I've uploaded an example to my webserver. Help would be so much awesome. my mind is totally fucked by that stuff...

HTML parser

Hello, I would like parse html result but I don't know exactly how. I make this code : ` htmlparser.js exports = {}; htmlparser = exports; soupselect.js var domUtils = require("include/lib/htmlparser").DomUtils; var domUtils =...

json

i'm trying to select from remote database and set data to tableview but there is nothing returned i don't know why just because i don't know anything in php and i don't have enough experience in titanium so please anyone help me there is my code...

Map with Google Json

I hope this helps every one ~~~ var win = Ti.UI.createWindow({ title: 'Map Google' }); var address = Ti.UI.createTextField({ hintText: 'Your Address', top: 60, width: 400, left: 10 }); var ok = Ti.UI.createButton({ title: 'Show Map', top:...

Problem in posting JSON data

Hi Everyone, I want to post JSON data using HTTP request. I have read the official [docs](http://docs.appcelerator.com/titanium/latest/#!/guide/Handling_Remote_Data_with_HTTPClient_and_JSON) and I am working according to them. I am using the following...

Titanium error after BSOD

I've recently encountered an error message with Titanium and I have absoulutely no idea how to resolve it! It happened when one day my laptop ran out of battery with Titanium running. Upon restoring power to it after plugging in the power cable, I...

callback function... help!!!

hi i need help to solve this: i've a config.js with this: // array with elements content one url (json data) jsonData['programas'] = 'https://eurekalab.com.mx/apps/radiocongreso/index.php?option=com_obrss&task=feed&id=2'; and jsonLoad.js,...

Where/How to add eventListener

I am building a Titanium mobile app for iOS. I have a search field where the user input is passed to the remote server. A php file queries the database and returns the resultset as JSON that I place in a table. My php file works as intended and the code on...

Parse error

Hello, I've this error. A need to parse a string to get a JSON object to send throught HTTPClient: ~~~ var xhr = Titanium.Network.createHTTPClient({ onload : function() { <something> }, onerror : function(e)...

Why sending nested JSON to a Rails app doesn't work?

~~~ xhr.send({ person: { name: n, surname: s } }); ~~~ This doesn't work. Rails app receives params malformed and can't parse it. ~~~ xhr.send( { name: n, surname: s } ); ~~~ This works. I'd really like to use the first option (with nested attributes)...

Multple annotation Problem

Hi, Here is my code, i m developping an application that detect the restaurant near you, this is working fine, but the problem is that i can only detect one annotation in map, i want a multiple annotations showing on map ~~~ win1 =...

Dynamic annotation json problem

Here is my code, first it tells me that annotations is not defined and when i delete this line, application is closed. here is my code: ~~~ Titanium.Geolocation.distanceFilter = 10; var win1 = Titanium.UI.createWindow({ title:'Window', ...

Webview + javascript

Hi, Here is my code, i created an hmtl page with a function inside and want to call it via javascript:here is my html page called index.html: ~~~ <html> <head> <title>...

json 2 problem

Here is my code it's not working it show me the button but when i click on it nothing is happening, here is my code: ~~~ var win = Titanium.UI.createWindow({ backgroundColor:'#fff', title:'Window' }); var button =...

Problem with DataBase

Hi, Here is my code, i created 2 textfield, one for name et other for password, i want when i click to button, the name and password goes to database ~~~ var win = Titanium.UI.createWindow ({ backgroundColor:'#fff', title:'Database ' }); var name...

Problem to sort a JSON with a specific value

Hi everyone, I am having a big trouble with some data to sort a JSON object with all the nodes whose got the value that I want. I am retrieving my complete JSON , no problem for that. But when I am trying to sort it to get a smaller one with a function. I...

How to call method using WCF Service ?

Hi all, I am trying to call WCF Service in my project. Just i want to call GetAddition Method and GetImage Method. Please someone help to me. Below is the code ~~~ var win = Titanium.UI.createWindow(); win.backgroundColor = '#ffffff'; var xhr =...

Error on ajax.

well i am want to show record of remote data base in table view and i am facing error on `ajax.get(url, params, ajax_cache_domain, cache_for, function (response)` here is the code. ~~~ var search = Titanium.UI.createSearchBar({ barColor:'#000',...

Accessing data in a nested JSON response

Im trying to access data that appears to be an object in an webservice call. The structure of the returned data has me stumped on how to actually pull the values out. Any help would be appreciated. The response information is formatted as such ~~~ {} JSON ...

passing parameters

In my application, i have a login screen. After the user logs in he gets a list of agenda. He selects the agenda through check box. I want to send the username with the respective checkbox to the back end database. The back end database is in .php file. I...

JSON Parse

var xhr = Titanium.Network.createHTTPClient(); xhr.onload = function() { var data = JSON.parse(this.responseText); Ti.API.info(data); var itemList = data.list; var x = 0; for(var i in itemList) { var thisItem =...

Parsing JSON string from module event

Hello, I am using Titanium SDK 3.0.2.GA and Android 4.0.3 and am having an issue parsing a JSON string that is being passed from a module. If I test parting within titanium, it works perfectly fine with the example below: ~~~ var sampleJSON =...

Showing 1-50 of 663 1 2 3 4 5 614