Community Questions & Answers

Troubles HttpCliente

This set will only information for tests ~~~ /* nameUser-> alphanumeric (User contract number) userPassword->key's user assigned by Vital Plan recLogin->check for option 'remember me' * */ var statusLogin = 0; var dataRespLogin...

OAuth

So I'm looking to make a twitter feed in my project. But I'm having problems, I can't find any good tutorials on OAuth2 implementation. Could someone with some experience in this point me in the right direction.

Common API call

Hi, i'm new in Alloy and I want to call an API server. We have a server with APIs, theses APIs use GET and POST. The APIs parameters are JSON formatted and responses too. What I want, if possible, is to create a common function like that :...

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...

iOS - Download and open a PDF

Hi, I'm a new developper on Titanium and I have tried to find a working simple example of downloading a PDF from a web address and open it in the DocumentViewer but when I execute my code it doesn't open and doesn't give me any error. I know that the...

module call

why it will appear error? how to solve it V8Exception: Exception occurred at undefined:1: Uncaught SyntaxError: Unexpected token u app.js ~~~ var gallery = require('gallery'); var win = Ti.UI.createWindow({ title:'Gallery' }); var btn =...

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:...

commonJS organize module

program below operate well, how to move function getDis() on win2 to another new module without error ? my program code look like below for app.js i create a layout ~~~ var gallery = require('gallery'); var tableRow=[]; var pageNum =1; var win =...

HTTPClient async property

My env is : Titanium SDK 3.2.2.GA, OS X Mavericks 10.9.2, iOS7, iOS simulator, Xcode 5.0.2 I use httpClient to download bunch of files from server, and that download process was blocking the user interface and making the application seem "hang"...

Stop current and pending http client

I have multiple tab. I'm currently loading multiple images using http so that after 1 image is loaded, it will load the next one. But while its loading, when I switch to a new tab, I want to stop the loading. to do this, I fireevent function to abort the...

HTTPClient returns responseXML null

Getting these errors [ERROR] : XMLModule: (KrollRuntimeThread) [21337,21337] Error parsing XML [ERROR] : XMLModule: org.xml.sax.SAXParseException: expected: /meta read: head (position:END_TAG </head>@58:64 in...

Showing 1-50 of 942 1 2 3 4 5 619