Change application url

76 views
Skip to first unread message

Alex Casanova

unread,
Jul 4, 2012, 8:47:03 PM7/4/12
to titanium-desk...@googlegroups.com
Is there a way to change an application's url property? I'm trying to use a js framework(angularjs) that loads views based on hash changes to the url.
Thanks

Michael Battalio

unread,
Jul 22, 2012, 6:57:44 PM7/22/12
to titanium-desk...@googlegroups.com
Do you mean changing the main window or current window url?  If so then yes you can by using either:

     Titanium.UI.currentWindow.setURL("your url"); 

or something like

      var mainWindow = Titanium.UI.getMainWindow();
      mainWindow.setURL("your url");

"Your url" could be anything I suppose http or "app://..."
Reply all
Reply to author
Forward
0 new messages