Community Questions & Answers
NavigationController opening-issues
Hey there, I'm currently experiencing some strange issues when using the Ti.UI.NavigationController (iOS). I have uploaded the problem in a smart clip here (https://vimeo.com/66475345). I have a custom Window-Class here: http://pastebin.com/xhZSaTDh And...
Windows and memory free up
Hi, in my iPhone app I have a RootWindow.js containing the following code (any button in RootWindow.js opens a new Window with a transition, then, once the Window is open I can close it from the opened window itself): ~~~ // I omit repeated code but...
open link in safari onclick within webview
is this possible to use for opening a new safari window, if a link within webview-html-content is clicked? i tried to use `onclick="Titanium.Platform.openURL('www.url.com');"` within an <a>-tag and failed, but maybe i'm doing...
Refresh Page upon tab click
Hi All I am looking for a way to reload a page upon a tab click currently it just maintains the previous state i want it to completely close and reopen again. I am a newbie at titanium so some help with this would be amazing. ~~~ // this sets the...
Open new Window using Alloy
Hi! Please can anyone tell me what is the best way for open new window using Ti Alloy? Unfortunately I have a little bit problem with this... What I need is basically: -> app.js ~~~ var newWin = Ti.UI.createWindow({ url:...
self.containingTab.open opens Window in a Different Tab? (code provided)
Ti 3.0.2, Mac OSX: I am trying to open a Window in Tab myVehicles, and when I do, nothing happens to that Tab, but gets open in Tab assistance? ~~~ // Has Account show Tab Group var tabgroup = Ti.UI.createTabGroup(); var...
Windows animation on open and close. tabgrups
Hello, I've just updated my app to use SDK 3.0.2, before i used 2.x.4, everything works fine, every part of my app with the new SDK, but i've just notice some weird behavior: when i open a new window, from a table view, i use...
Load window before opening it
Hi, is there any way to wait for a window to open until that new window is fully loaded? So in a sense the new window is preloaded first. For instance, let's say I have a window with a tableview with a bunch of items. When I click one of the items on...
How to open a window from a button?(commonjs)
I am learning commonjs, and I am running into a few bumps in the road. How can you open a window from a button in a tab group? ~~~ function tv_basic() { var HomeWin = Ti.UI.createWindow({ backgroundImage:...
open and edit pdf file (iphone/ipad)
hi, i'm making a timetable for school. The timetable works great(working via json to retrieve data), but now i'm adding extras to the timetable. I want to open a local pdf(wich contains the study stuff of the lesson), but the only information i found is...
Opening a PDF not working
Hello, I am trying to open a pdf to no avail. I referred to this http://developer.appcelerator.com/question/72361/open-pdf-file-on-android link to see how I could go about opening a pdf. It still does not work. I have also already asked this...
Opening a PDF not working
Hello, I am trying to open a pdf to no avail. I referred to this http://developer.appcelerator.com/question/72361/open-pdf-file-on-android link to see how I could go about opening a pdf. It still does not work. Below is the code. ~~~ var win =...
Opening Aptana projects in Titanium Studio
I was using Aptana for some webdev and am now also interested in mobile app dev so downloaded and installed Titanium Studio. Since Aptana & Titanium Studio are essentially the same IDE, how do I open projects I've created in Aptana in Titanium Studio?...
What's a good way to know if a view is open or added?
I need to determine if a window is visible (if it has been added or opened). What's a good way to do this?
[Android] [Alloy] App crashes on window open
I've been testing on ios simulator with no problems. I ran across a doc stating that in an upcoming release, globals will not be supported. I figured I would start changing that and fired up Android as the same doc mentioned this already doesn't work....
Close a window before open new
Hello everyone =] Imagine that I have 3 windows: 1, 2 and 3. In window 1 I have a button that open window 2. In window 2 a button that open window 3. And in window 3 a button that closes it and a button that open window 1 again. If I still opening...
Opening a window with an animation animates after the window is opened
When I open a window with an animation object in it the window opens but the animation is fired when the window is opened but I want the animation to happen when it is openeing and not after the window is already visible. I used an example from the...
Android - not saving external file to app directory
I am developing for android. Using Titanium 3.0.1. The function below is to go out and download a file and save it to the applicationdatadirectory. This doesn't appear to be happening. When i run this function in the Android emulator, I check to see if...
Open old window with commonjs
Hi, This is my 1st window code: ~~~ var actualWin; exports.init = function(){ //do blablabla and create window, then store in var actualWin = win; } exports.getWin(){ return actualWin; } exports.open(){ actualWin.open(); } ~~~ I call this...
tabGroup open event
Hello, I want to add the event 'open' to my tabGroup. But when i add this nothing happens. Anyone a solution for this? Greetings, Jacob
What is the best option to open windows
Hi, All I have a multiple window app and have buttons to go back to previous pages if I use my app the first time all works well but if I page back my some of my icons on my page does not work. if a page opens it looks like this ~~~ winMail.add(new...
auto-focus on Titanium.UI.TextArea upon window.open in android
I've been struggling with the following bug for the last two days and finally decided to ask the community for a solution or workaround. In the current titanium SDK, the first visible TextArea in a window that is opened is immediately focused and the...
Opening a page with a button
First of all, Yes haha, I have spent hours trying to find a solution but I have not found anything. So I basically with the use of my button "buttonChampInfo" I would like to open the app1.js screen. I have absolutely no idea how to do it.. I...
New Open Source Titanium App: Arduino Reference
Hi all, This is a reference for the Arduino platform, an open source micro-processor system: [http://www.arduino.cc/](http://www.arduino.cc/) It's something I've wanted to do for a while. I just started 10 minutes ago, and so it has only the most basic...
window.open(ANIMATION_TYPE) not working?
Hi guys, I've been trying to create a two-window system that contains a menu in the first window that, when clicked, opens a new window off-screen (linked to a .js file) and then slides it in from the right. After reading a bunch of tutorials it seems the...
Reopening TabGroup Crashes in Android with NullPointerException
I'm experiencing a crash in my Titanium 2.0.2 GA mobile app on Android where reopening a Tab Group is crashing with a NullPointerException. The symptoms are very much similar to these Jira's I've found but I've tested the test code in those Jiras and it...
Open Window with slide effect without Tab- or NavigationGroup
Hi, Is there any chance to open just a simple window with the typical slide effect without the use of any Tab- or NavigationGroup? E.g. One simple window with a button which takes me to a second (child) window. thank you so much, Jakob!
Android - multiple windows firing
Hi all, I have an app working well with on iOS and I am now trying to get it working with Android however I have come across this issue which with quite a bit of searching and hacking I am unable to resolve. So here it is with some hope someone has come...
How to Show a View or Window for 5 seconds everytime the App is Opened
Hi I need to be able to open and show a created view or window everytime the user opens up the app. I know i can automatically use the Default.png image when the app is first opened but i need to be able to bring up a view or image if it is put in the...
Animate currentTab.open like the FLIP_FROM_LEFT transition
This opens a new window using FLIP_FROM_LEFT animation ~~~ newWindow.open({transition:Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT}); ~~~ This opens a new window on currentTab using a slide animation how do I animate it like the above...
how to make user chose between twitter apps or browsers when click on twitter icon
hi , i want my app make user chose between open twitter with twitter apps or with browsers like this app:  ________________ i tried webview : ~~~ aButton.addEventListener('click',...
Open a new window with animation (not in tabs)
I'm creating an iPad app that does not use tabs. The apps.js file simply opens a full-screen window, and from within that window we can open other full-screen windows. Each time a new window is open, I want to animate the transitions. I got this sample...
close and open an app iOS
hi, i'd like close and re-open my app. how can i do it? thanks
Open another .js on image click event
Hey, I want to know if I can open another .js like form table views, but just from the event of clicking on an image. I suspect I have to include the file, but where form then on? Thanks! iOS, Studio, 2.0.0.GA
CreateNavigationGroup > Open and closing windows
Hi all. I don't know what else I can try to close a window using a `createNavigationGroup`. Let's see: - Why does this work: `navGroup.open(SetPaxWindow(), { animated:true });` - And this doesn't: `navGroup.close(SetPaxWindow());` Any thoughts?
Dynamically make calls, or open URL
Hi there, What I'm trying to do is. - Loading a URL and a phone number from a local DB.Then pass those into a button/link to prompt to make a call, or to open that URl. what I did so far, is to get my URL, and phone number as a var value, then i can't do...
Android tabgroups and opening/closing window?
My question trying to understand why Android is opening and displaying heavyweight windows the way it is. I have created a standard tabgroup, and all screens or sub screens are heavyweight...
Is Titanium Studio open source?
Hi everyone, I recently downloaded Titanium studios, and looked at it's wiki. I was wondering, is Titanium Studio open source, just like Titanium Developer? I was already looking for it, but couldn't find it.
How to close current window and open before one.
Hello. My app structs like this.. App.js : Ti.APP.property check (they have login information) If there are no Property, then open login window. Else open main window (auto-login) in Login window, if input the login information (id,pw) and click...
Window open event fires twice in 1.7
When my iOS app starts, the app.js calls another file that opens up using the following code: ~~~ var win = Titanium.UI.currentWindow; win.open(); var tempcounter = 0; // more code // Action to be taken when application opens the first...
Window / View close and switching problem.
Hi, I have a problem to naviguate with windows and view. In my app.js i create a main view which goes on Firstpage.js. In this Firstpage.js I create a view with a activityindicator that I add in the currentWindow. I do a checking of some data during the...
Closing windows problem
Ok... I'm going to try to explain what I want to do and what my problem is... Basically, I want to create a main menu window (I'm working without tabs) with a start button and a second window with the program, so when you hit the button you go to the...
Database Open and Install- changing names- why did it work?
I have been struggling with getting a DB opened and then reading the data. I was constantly getting an error about the table not existing. For the longest time I thought it had to do with the table name because I didn't receive an error from db.open or...
Modal Window - [WARN] Exception in event callback. {
Hey Guys, my modal window dosen't work. the output: [WARN] Exception in event callback. { ~~~ var win = Titanium.UI.createWindow(); var options = { contentURL : 'training/intro.m4v', //fullscreen: true, scalingMode :...
open a modal window by tableviewrow click
Hey Guys, i need a CodeSnippet for TableView with a click event. If i click on a row, than opening a window with a local video inside. The tableview is no problem, but my click event with the window isn't go on. please help! best regards
What happens to the view when the parent window close?
When I close my modal window (initially constructed with WebView) and then subsequently open the same window, I don't see the previously displayed WebView. Instead all I see is the blank black window. To get around it, I had to construct WebView every...
open settings from app?
hi is it possible to open the iphone's settings from within a mobile app? cheers vince
Correct Way To Open And Close Windows
I have a fairly straightforward app in terms of windows. But am struggling to find a way to switch between them based on returns from js modules. My app.js file looks like so: ~~~ // create app namespace var ytv = {}; // create splash look while user...
openPhotoGallery not working on iPad 1/2 times
So here's the code to reproduce the problem: ~~~ var win = Ti.UI.createWindow(); b1 = Ti.UI.createButton({title:"P gallery",top:100,width:200,height:90}); b2 = Ti.UI.createButton({title:"P...
windows animated switching problem
Hello all, I'm trying to swith between one window to another and close the previous one while opening the new one. I can achieve that with this code: ~~~ var win = Ti.UI.currentWindow; var contentWin = Ti.UI.createWindow({ backgroundImage:...