Community Questions & Answers

createHTTPClient set property

Hello, on my property no data will be stored Thanks in advance here is my code ~~~ function APIManagement() { this.currentMoviesURL = "my url"; this.becomingMoviesURL = "my url"; this.resultJSONData = null; var self =...

Ti.Network.createHTTPClient error

I get a status 403 permission denied when I try to connect to a remote file to retrieve data. It works fine when I use a local file. Any ideas what would cause this? Here is the file ~~~ var currentWin = Ti.UI.currentWindow; var view02 =...

httpClient Post won't work!!!

Hi guys, I'm trying to make a simple app send some values through post to a php file I have on my local web server. Then that php script will insert into a mySQL database, but looks like I have something wrong on my application's code cause it gives me a...

Get return from another scope

Hi guys, I cant get the return from this code: ~~~ exports.isOnline = function(isOnline) { var xhr = Titanium.Network.createHTTPClient(); var jsonObject; xhr.onload = function() { jsonObject = JSON.parse(this.responseText); }; xhr.onerror =...

Can not call createHTTPClient Is undefined

Hi All, I have found error while calling webservice,createHTTPClient Is undefined, please help me out. Below are the code sample. Thaks var xhr = Ti.Network.createHTTPClient(); xhr.onload = function(e) { Titanium.API.info('xml ' + this.responseXML...

XML Data being treated as binary

I'm trying to read an xml data into an iPhone app. I'm getting responseText = undefined and responseData = [object TiBlob]. It makes me think that the app treats the data as binary instead of text, and I guess this is because the encoding of the xml is...

Basic XHR in Titanium Desktop

I've been trying for hours to make simple GET-requests to Google work in Titanium Desktop. Here's one of my many attempts: ~~~ var xhr = Titanium.Network.createHTTPClient(); xhr.onreadystatechange = function() { if (xhr.readyState == 4 &&...

Need to extract a few elements from external XML file and display

I have read through most XML discussions but have not gotten a solution that works for me. I just want to parse through an XML URL and pull values for specific name/value pairs. After I get that basic functionality working I will want to add other...

TypeError createHTTPClient

Hi all, I don't know if it's because i just got out of bed, but for some reason i can't create the simplest HTTPClients anymore. All I get is a Runtime Error that tells me "TypeError: Cannot call method "createHTTPClient" of...

createHTTPClient drives me crazy.

Hello, in my previous question, I had problem using web services from Viadeo. So I decided to switch to Photobucket ~~~ REST Request Format The Photobucket API uses Representational State Transfer (REST) for requests and responses, so that domain-specific...

xhr.open & TAP, TAP, TAP

I've searched the docs ... can't seem to find an answer. My code successfully returns a record from my database ... but subsequent attempts to return a single record fail with TAP, TAP, TAP ... Here's my code ... any clue what I'm doing wrong? Thanks in...

Showing 1-50 of 57 1 2