Community Questions & Answers

Return First Window

Hello, How can i return the first window from the last window while using the commonjs navigation window ? Thanks app.js ~~~ var StartUp = require('/control/startUp'); StartUp.StartApp(); ~~~ starUp.js ~~~ function StartApp() { 'use strict'; var...

Problems with the debugger

I am running Titanium SDK 3.3.0.GA and I am running Titanium Studio 3.3.0.201407100905. I have two problems with the debugger. 1) When the debugger hits my breakpoints with the iOS simulator it is not executing that line of code. It is off by a few...

Getting Node.js PDFkit working

Hey all, this seems like a really great commonJS module. It works in the browser and in node.js. For open source, it is one of the only javascript based PDF generators to support SVG graphic formatting. http://pdfkit.org/ I took the web commonJS format...

web debug

I am building my app in commonjs way and when I tried to run my app in web browser. The debugger show me the error in index.html, is there a better way to debug my web app? Thanks!

Get a warning when I tried to use momentJs

This is the warning: [WARN] : Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info. I am using...

"exports" is not defined ? Android issue.

I am attempting to build a cross-platform utility app using the commonJS approach. I've had issues with SDK versions, and am currently using 1.80. Although everything is working fine on IoS, I'm having some major issues on Android and can't even use the...

Javascript - Garbage Collection

I'm a bit confused here: 1. Global variable will stay in memory even if it will not be used anymore? For example, in app.js: ~~~ var foo = Ti.UI.createView(); //something else. the foo will never be used again. ~~~ So the variable foo and the view it...

CommonJS module

In my module there is a function that needs to be exposed and used internally. Here is what I do: ~~~ var foo = function(){}; //to expose exports.foo = foo; //to use internally foo(); ~~~ or more simple: ~~~ //to expose exports.foo =...

Probably simple Q regarding commonjs

(Building for both Android and Iphone) Hi I am new to commonjs and this is my problem: On startup of my app, I check if I am connected to the net, if so I grab a fresh json file on a server and I set the fresh json (in "json.js"). In...

CommonJS Module

I found this on the docs: The global scope of app.js is not accessible from other contexts or within CommonJS modules. So, you can't just dump variables there so you can access them throughout your app. Wait. I thought any variable I declare in app.js is...

No window settings?

I am opening a new window, but i cant get any of the attributes to work except color. Im using commonjs to open a new window from a slide menu. Here is some sample code. For IOS Any...

how to seperate codes blocks

I would like to seperate my index.js code blocks to diffrent js file. Is that posible? For example; template.js (which is in asset folder) as below ~~~ var plainTemplate = { childTemplates: [ { type: 'Ti.UI.Label', // Use a...

Window opening using slide menu

Hi I am using Titanium Studio, build: 3.2.3.201404181442, on a Mac Book OS10. I am making IOS app using a slide menu. I am using NappSlideMenu found here. https://github.com/viezel/NappSlideMenu. My problem is that I cannot open a new window from any...

Using databases with CommonJS

Hi, I have a CommonJS module for a text area where the user can input the name of a task. In my app, I am wanting to have multiple windows for different task groups(such as art or design) that include this text area. However, I am wanting to save each...

CommonJS Objects Problems

Ti SDK 3.2.2.GA CLI 3.2.3 IOS SDK: 7.1 IOS simulator 3.5 Im starting developer with Alloy and CommonJS, and I have a problem with the scope of the objects: ~~~ //median.js function...

Showing 1-50 of 403 1 2 3 4 5 69