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

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

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

organize module, commonJS passing parameter

i want to move the function getDis to another module, how to do that? app.js i create a layout ~~~ var gallery = require('gallery'); var tableRow=[]; var pageNum =1; var win = Ti.UI.createWindow({ title:'test Manage Data' }); ...

Custom UI Component

Hello there, I have a custom component defined like this: /app/article.js ~~~ exports.createArticleViewContent = function(title) { var articleTitle = Ti.UI.createLabel({ text:title }) return(articleTitle); } ~~~ and I am calling it from my app.js...

Call function in module using commonjs

Hi all, this is my file function_module.js ~~~ function myfunction(){ var one = 1; var two = 2; var tot = (one + two); alert(tot); } exports.myfunction = myfunction; ~~~ In my window1.js ~~~ var function1 = require('ui/function_module'); var...

namespace in Titanium

I am a beginner in Titanium Mobile. I have seen some application on Github. Few applications used namespase like this below one ~~~ var globals = {}; globals.tabs = new AppTabGroup(); globals.tabs.open(); ------ ------ ------ ~~~ I have few questions...

Retrieve JSON from server and CommonJS module

Hi, I made a very simple module to retrieve JSON from a server. This little piece of code can be called from any js file in the app. ~~~ exports.callServer=function(uri){ var xhr = Ti.Network.createHTTPClient({ onload: function() { ...

can call function only once

I'm having a navigationWindow that calls a child main.js ~~~ function openTableView(e) { var win3 = Alloy.createController('tableView').getView(); $.win1.openWindow(win3); } ~~~ The child has a TableView. It gets filled calling a static function...

Problem with KrollRuntimeThread, the logcat show me "The text property of Text is deprecated, use textContent instead"

Hello! I'm programming in Titanium Studio, but when the app runs in the device, the logcat describes the next error: `2013-11-21 09:09:00.859 W 10378/Text: (KrollRuntimeThread) [161,18758] The text property of Text is deprecated, use textContent instead....

Alloy + Common JS Organization

Hey all. I'm just digging into Alloy and absolutely love it. As a self-described "sloppy developer", Alloy really forces me to organize my code. I have seen the light! I'm rebuilding an app that I had built a few years a go. The code had gotten...

Showing 1-50 of 358 1 2 3 4 5 68