Community Questions & Answers
Android HTTPClient removing request header
Hi, I'm writing a YouTube video uploader for Titanium. All works fine on iOS and joy of joy I have problems with Android. A few things. ~~~ /* This is for a resumable upload */ xhr.open('POST',...
Webservice, XML Response Request, onreadystatechange
###Hello there, ###since a few days i have a problem and i have no idea remaining. Please help! ###I want to send a xml request and become a xml response. ###Then i want to read some information out of the xml response. ### create xml ~~~ ...
Load more Data from Remote db to tableview
Hello everybody. I am trying to use the Dynamic scrolling Feature from the kitchensink example to load more Data from my Remote datasbase. Currently the Function loaddata consisting of a http Request Creates a Row for the 10 newest entries from the...
How to send facebook 'apprequests' ?
I have tried ~~~ Titanium.Facebook.dialog("apprequests", {}, function(e) {}); ~~~ but it is not working and giving me a dialog error according to http://developers.facebook.com/docs/mobile/ios/build/ and...
request mjpeg file
how do I make a request for a MJPEG file to a IP Camera?
How do I receive an image POST (XHR) via ASP.NET?
I am playing around with the xhr demo to upload an image and it's returning a 200 status from my server, but for the life of me, I can't figure out how to capture the image on the server. Has anyone ever done this with .NET? If so, can you please post a...
Multiple JSON download at once
Hi after login I need to download all the information of an employee, and I need to save in database information from distinct JSON but only I get the first JSON not the rest. Here is some code... Login.js ~~~ var url = restClient.URL_LOGIN; var xhr =...
Contacts access in iOS 6
Dear readers, Can someone tell me what I'm doing wrong? I want to get contacts from an iOS device with iOS 6. I need to request authorization, but I never see the request popping up. From the first boot, it preforms only the first if statement, which...
Problems with xhr.setRequestHeader() and content-type
I am trying to talk with an api over post and json. But its keep sending the content-type as `application/x-www-form-urlencoded; charset=utf-8` ~~~ var xhr = Titanium.Network.createHTTPClient(); xhr.onload = function() { ...
createHTTPClient's setRequestHeader problem
Hi. I have searched in google and in this forum, but does not found any answer. I want to set custom request header like this : xhr.setRequestHeader("_drl_key2": "1"); but this does not work, when I log in server _drl_key2, it...
HTTPClient request: getting a ClassCastException
Hi all... I have done hundreds of HTTPCLient and all of them works.... Now I have another HTTPCLient: ~~~ var xhr = Ti.Network.createHTTPClient({ onload: function(e) { Ti.API.debug(this.responseText); }, onerror: function(e) { ...
Requesting Pass Kit and PassBook support
If you are prioritizing the iOS 6 features, I up-vote Pass Kit and PassBook. I would prefer it being available in Titanium before iOS 6 is shipped to users.
Any update on potential eta for Passbook (Pass Kit) integration?
Hi Appcelerator team, Passbook looks like a great product. Do you have an eta on the integration for the Pass Kit APIs? Would love to work with it. Thanks!
Check if XHR request is still running
Hey developers, I was wondering if it's possible to check if an XHR request is still running. I would like to check this outside the request itself. I execute my requests like this: ~~~ var xhr = Ti.Network.createHTTPClient(); xhr.open('GET',...
Decline a friend request
Is there a function to decline a friend request with Ti.Cloud? I couldn't find one, and I assume I could approve, then subsequently remove the friend, but I thought there may be a more direct way to decline the request.
ScrollableView make request on scroll event on Android
I am making scrollable gallery with scrollable view. Every 30 views I make a new request to server from where I get another 30 views. On each scroll I am checking if it is the first or last view and then getting the request. On iPhone is working ok, but on...
Communicate iOs device to Adhoc network
Hello, Is there any way to communicate iOs device to ad-hoc wifi network , interacting via sending request and getting response in return. Thanks Moiz.
createHttpClient runs after other vars declarations
I have this code in Titanium, that calls a PHP file on server that print the Name of user that match with id: ~~~ var myString; var request = Titanium.Network.createHTTPClient(); var url =...
xhr file upload rejected - invalid multipart boundry
Hello, I'm having problems getting an xhr file upload to work using the kitchen sink sample code. works ok to my localhost but on the live server it is being rejected by apache mod_security due to a malformed multipart boundry which results in a 400 bad...
openURL and RequestHeaders
I need to be able to open URLs that require authentication, however, the user has already authenticated with the mobile app. Currently, opening the URL takes them to the web login page of our system asking them to authenticate again. Is it possible to...
Problem Ti mobile 1.1: In case of http redirect - wrong / truncated user-agent sended...
Hi, in case of a http redirect (location) the sended http user-agent will be truncated and not the same then before... This could lead to authentication problems on some websites or webservices.... Problem should be fixed in ASIHTTPRequest.m -> Line...
how can server get data from mobile app when it needs it
I need to get the position of some devices that installed my app. How can the server ask the device to send it's position? Is it possible for the server to initialize such a request?
Facebook RequestWithGraph While() Problem
Hi, I'm trying to make a script that updates a database with the names of the friends of the logged in user. So I have a piece of code that fetches all the id's of the user's friends and stores them in the database, that works fine. Then I have this...
Open a SQLite database and make some requests
Hi, i've just created a database with sqlite3 but when i tried to access to it and make request, an error occur. At line 8 ("var rows = db.execute('SELECT * FROM informatique');"), the error is: ~~~ "Wrapped...
iOS XHR Duplicate Requests - iOS 4?
I am getting a significant percentage of duplicate XHR requests under iOS 4.3.5. I am aware of the iOS Bug [TIMOB-6016](http://jira.appcelerator.org/browse/TIMOB-6016), which dealt with duplicate xhr requests and it was supposedly limited to iOS 5....
How to use menu button and back button?
how to use menu button to show menu and back button to request someone upon exit.. help me pls..
Google Weather Api with YQL. Dont work/
Hi all! Google weather API sends a response in the xml format. But I need JSON. [As it was said here ](http://cssgallery.info/seven-days-with-titanium-day-3-ajaxxhr-and-webviews/) I have to convert xml to json using yql. But seems it does not work for...
Recurring Local Notification
Could someone share an example of this? I have been trying but debugging is taking a lot of time (I am actually waiting 24 hours to see if it works) ~~~ var notification = Ti.App.iOS.scheduleLocalNotification({ alertBody:...
HTTPClient and ASIHTTPRequestErrorDomain
Hi, Since a few time, I use to have an issue with my requests: ~~~ Error: { "source":{}, "type":"error", "error":"Error Domain=ASIHTTPRequestErrorDomain Code=1 \"A connection ...
Feature request - 'Force Rebuild' button and key commands
Not sure if this is the proper place to make feature requests (feel free to delete if not), but I would love to see 2 features in Titanium Developer: 1. A button to force delete and recompile the build folder (so rather than having to manually go move the...
HTTPclient - see the request with argument
Hello, I wanted to know how to see the request sent by __HTTPClient__, because I don't know if I'm giving wrong arguments to the __send__ method. If there is no way to see what is the complete url sent with the __data__ argument by this method, please...
Intercept http request for image
Hi all, I want to know if it's possible to intercept the http request of any image got from a server? It's for waiting the real showing of the image and do not create an image view before. Thanks a lot. M.
Can't login in Appcelerator --> Request timeout, make sure you are online
Hi, i can't never login in appcelerator from my office. Proxy is well detected but ..... Here the debug log, there is a sql error. log --> http://pastie.org/1000532 Thanks for your help.
xml parsing on first load
Hi, I am facing very strange issue in parsing xml. XML parsing fails to parse the xml response on the first loading of application in the ipad simulator as well as device. If I completely quit the application and if reopen it, it works!!!! On the very...
request timeout make sure you are online
Hello, I am running Titanium 1.2.2 on ubuntu linux. At work (ubuntu also) everything went great but at home I keep getting the error 'request timeout make sure you are online'. I commented the lines ~939 as described is some posts but now I don't get...
setup complaint and request.
This is a minor complaint. I can appreciate the simplistic interface, but there is something to be said for application settings. Specifically, defining paths. I have multiple versions of python installed on my windows box (ranging from 2.5 -> 3.1). In...
FYI - 1.5.0 HttpClient sync call borken
Hope it saves someone else some time, but synchronous calling using the HttpClient is borken in 1.5.0GA. The application just quits. Going to 1.5.1 works fine.
no activityIndicator on HTTPClient request
Is it possible to do a HTTPClient without showing the activityIndicator on the top of the screen on the iphone? I want to do a httprequest which is not visible for the user. Not because it is a secret but because i want to use the activityIndicator for...
Feature Request: cannot create Custom Labels when adding URLs for Contacts
I can create a contact in Titanium, and I can add URLs to the contact. I cannot, however, specify custom labels for the URLs. For example: ~~~ // Creates a contact with firstName of NULL var contact = Titanium.Contacts.createPerson(); contact.firstName...
Compile or Test App?
Pointers for Desktop, Can do? ----------------------------- 1. Why do we need to compile the whole app when we just want to lauch it, can't we just make a APP.EXE and refer to the resources directory inside the project not in dist. 2. Where's the Native...
feature request: naming of packages created by Titanium Desktop
Filenames of packages created by Titanium Desktop should have version number appended to the filename. Right now every version is published as MyApplication.msi and changing it to MyApplication-1.1.3.msi would be much clearer during downloading and...
SOAP example in kitchen sink
Hi All, I'm having trouble implementing the SOAP request example from kitchen sink into my own app. In my app I create a new window which contains the code from kitchen sink, this is called soap.js and is as...
request timed out. make sure you are online. firewall prohibits ping
Hi I am on a network where I can access the internet through a proxy but ICMP packets are not permitted through to the internet at all. Wireshark tells me that Titanium is trying to ping Yahoo but this will never work on my network. The proxy does work...
Feature Request: Keyboard shortcuts for changing scale
Now that I get why the ipad sim opens 50% on my laptop - boy could I use a keyboard command to bump to 100%. Just throwing that on the request stack.
HTTP Client Connection Header bug?
hi, I'm using the Titanium.Network.HTTPClient to send a GET request to my RESTful Service. I noticed a few things: 1. The HTTPClient's Request headers contains two identical headers of this type: "Connection: Close". I think its a bug - only a...
Invalid Token Request
Everytime I go to build a app I get the Invalid Request Token error, I can bypass it for 2 or 3 builds by re importing or recreating the project. But this gets annoying and then I can't update my apps.
Showing 1-46 of 46