Community Questions & Answers

SOAP web services

I am made a SOAP web services, and I need to pull into my app the table that is displayed on the web service. What code do I use for android and iPhone devices to display the table that the web service reads? I am using titanium SDK version 3.2.2...

How to send a variable to a json url?

Hi! I have a textfield in app.js, and when I get the value from the textfield in another view/page, I wanna be able to attach the value of the textfield to a json url. What I wanna do is to get the value from a textfield. Send the value from the textfield...

JSON http request working example here

I looked around and saw several questions about how to make this work, but no complete example for noob's like me. (or at least I didn't find one) So here is one: **sample.php** ~~~ <?php echo...

OAuth 2 Authentication for iOS and android

I have Ruby on Rail service. Service response will come in JSON format. But i tried so many ways to login and get OAuth token. Please guide me how to pass login details in service URL and get OAuth token. Like email and password. Its very urgent task...

Update object titanium

Hi, Im having problems by modifying an object in titanium. My code: ~~~ Ti.API.info("before: "+JSON.stringify(myObject.oneProp.state)); myObject.oneProp.state = "off"; Ti.API.info("after:...

send data in json

I have the above code i want to send data in json format for (var i = 0, l = data.length; i < l; i++) { if(data[i].switch.value==true){ // var param=data[i].title; //alert(data[i].title); ...

Access the JSON.stringify result

Hi All, I have following code: ~~~ var signR = JSON.stringify(sign); ~~~ and the result of it is : ~~~ [{"policyNumber":"l","signature":"{height=200, cropRect={x=0, width=200, height=200}, media=[object TiBlob], y=0,...

Json "Internal Server Error"

I have a problem when I send a request with a hash of the password. I can't use the output of the sha256 function as data in the array of the request. ~~~ var params = { action: 'loginStepTwo', username:...

Not showing image in image view

Hi.. I am developing android app in titanium i am getting data from json and showing on the screen every thing is working fine but when it comes to image it is not showing i am trying to get the image from the json object which gives me the link like...

Error parsing JSON

I've been trying to parse a JSON that i get from server. Before this, it works nicely but suddenly it doesn't work. I'm using the same code in both android and iOS but only in android it doesn't load. Here is my error: ~~~ 01-16 10:27:22.047:...

Using the Master/Detail template with json data

Hi, I'm using the master detail template in titanium and am finding it really difficult to replace the static table data with some json data i am pulling through an xhr request. How can i do this? ~~~ function MasterView() { var self =...

json parse [object object]

hi i'm doing the json parse in my project, .It's showing the in alert [object object] . and i wrote the code like this . ~~~ var priceversionurl =...

Date Library to use

Hi All I am developing an app that has a lot of date manipulations. I know Date.js can be used but are there any good libraries for this purpose that could be used in titanium project. Good to know thank you

missing bindings json file (AdMob)

hi, i have an strange error. I made a iOS App and want to use the same source for android. Compiling gives the following error: ~~~ Titanium Command-Line Interface, CLI version 3.2.1, Titanium SDK version 3.2.1.GA Copyright (c) 2012-2014, Appcelerator,...

json post on openbravo

I'm trying to insert new record in openbravo through advanced rest client, but I'm getting this error: Exception when updating BusinessPartner(null). For POST, I'm using the following URL: ~~~ ...

Unexpected token":"

Hi, my Titanium studio is not accepting Semicolons Syntax error unexpected token":". this problem occurred wile I'm coding the first app. i'm so confused on how to fix this bugs. anyone who want to help can help please.

Tough to Parse

I am having a tough time parsing the following in Titanium. I cant seem to get the last massage parsed. The bad thing is I can not change this response, its coming from source API I do not own {"Message":"The request is...

How to cache JSON data

I'm using alloy MVC framework for my app. I've table view which is being populated by the JSON data that I'm receiving from a backend service. I want to store the last seen rows (last 10 rows) to be saved in the memory so that when user doesn't have...

Unable Parse Json String

Hi there, i am getting "unable to parse json string" , what should i do ? js file ~~~ var send_comment = function() { var createReq = Titanium.Network.createHTTPClient(); var params = { username :...

JSON key/value problem

Hi all, I'm a newbie on javascript also titanium. ~~~ var defaultSettings={ global:{ screenBackLight:'auto', version:'0.1', }, }; ~~~ I want to get all keys and values independent of legth. I wrote this code but I didn't get...

Showing 1-50 of 810 1 2 3 4 5 617