Community Questions & Answers

Titanium SDK 3.3.0 Http Error?

Hey, i am using Kinvey as a backend and trying to make a "normal" http call to them: ~~~ var xhr = Ti.Network.createHTTPClient({ onload: function(e) { console.log(this.responseText); alert('success'); }, ...

Mobile Web Http Client Request

Am using 3.2.2.GA sdk, Alloys and chrome and mozilla for development. I have set CORS for my Jetty server. and its working fine. I have tried to send an ajax from titanium but I dont know what may be the problem. I always getting **cant reach host**, when...

http 303 error using SDK 3.3.0

OSX 10.9.4 Ti Studio 3.3.0.20140710 SDK 3.3.0 Just updated SDK to 3.3.0 and all my HTTP calls started returning 303 errors ~~~ },"code":303,"error":"The operation couldn’t be completed. (kCFErrorDomainCFNetwork error...

Dynamic picker

Hi I'm developing a Android app and i'm using Titanium SDK 3.2.3. In my application i've to create one picker which receive data from a remote webservice (one title per row). I developed the following code, but I know that's not correct. Can anyone help...

Sending a message via HttpClient()

I'm doing an app to Android. In my application the user have to insert the name, the email, cell phone number and a message. When I click in "Send" the message will be dispatched. But if it is not being performed. Here is my code. What's...

Use textfield as input in PHP

Hi everybody, i have a problem. First of all, i'm a begginer, so maybe is a simply question.i'm creating an android app in windows 7, where there are two textfield containing hour and minute. I would that the other users see in their textfield the hour and...

HTTPClient Timeout On Error

Hi, Having trouble with timeout and onerror. When the HTTPClient timeouts, the onerror doesn't get called. This is the code: ~~~ var xhr = Titanium.Network.createHTTPClient(); Ti.API.info('Logging In:'); xhr.open('POST', url); xhr.send(); ...

Android HTTPClient write to ram

I'm using a HTTPClient on Android 4.4 to download a file. As the file is downloading its written to the app cache. I'm trying to find out how to stop this and make the file get written to the ram of the device since it just needs to be temporary.

Synchronous http client

Hi, I have this code : ~~~~~ function downloadImage(url, filename){ var client = Ti.Network.createHTTPClient({ onload: function(f) { var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,...

XHR timeout error code as 0

Hi, I have an xhr network call in my app. where I want to check for timeout. But I am getting the status as "0" instead of "408" in both iOS and android. Please any one help me in this issue. It is happening in Titanium 3.2.2 SDK in...

HTTPClient keep-alive connection

Hi everybody, I need to set "Connection:keep-alive" in the HTTP request header. I tried both xhr.setEnableKeepAlive(true); xhr.setRequestHeader('Connection', 'keep-alive'); The sniffer tells me that the HTTP header still contains Connection:...

HTTPClients lagging out Android build

I've been testing my app using iPhone emulators, I decided to clear out any android specific bugs today so I built on android. The current biggest issue I've encountered is that web service calls completely lock out the app to the point where sometimes the...

xhr post method error

Http error in ios7 but this code work in android var xhr = Titanium.Network.createHTTPClient(); xhr.setRequestHeader("Content-Type", "text/json"); xhr.onerror = function(e) { Ti.UI.createAlertDialog({ title:...

Showing 1-50 of 995 1 2 3 4 5 620