Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

why Titanium use JavaScript as develop language?

I'm new here to use Titanium to build my mobile App,I have a question to ask:
why Titanium use JavaScript as develop language?does a Titanium Mobile App based on HTML?
btw:is there any IDE for me to layout the controls?

— asked September 15th 2010 by Wen Bin
  • ide
  • javascript

5 Answers

  • I don't believe Titanium apps are web apps any more. JavaScript is merely the language used to call native APIs. No browser technology is used, unless you use a web view, in which case you aren't really running Titanium's javascript, you are running Safari's javascript.

    Did I get this right? :)

    — answered September 15th 2010 by shawn gordhamer
    1 Comment
    • Hi shawn,I read some demo codes,i saw that Titanium is "JQuery Build-In",and it also can set css,so,can we say that Titanium Mobile App is based on HTML?

      — commented September 15th 2010 by Wen Bin
  • I think the main reason they use javascript is that apple has a built in webkit that allows you to compile the javascript so you can take full advantage of the language.

    As far as I know there is no GUI Designer yet but I believe it's coming as part of the official IDE.

    — answered September 15th 2010 by Sj Singh
  • Javascript is a language known to a great many people, so supporting javascript allows web developers to leverage the expertise they have obtained working on web apps with mobile apps.

    Further, if you're going to build a system like this you need a language that runs on all of the platforms; Javascript is already present on both the iphone and android as well as many other mobile platforms, which makes it likely that Titanium could be extended to support pretty much any platform with a web browser.

    To be honest, I'm not sure if I'm totally sold on using Titanium for mobile development for my projects, but the theory behind it is rock solid =]

    — answered August 31st 2011 by Richard Bateman
  • Hi guys, is there any change to your answers here? I'm in need of a tool that will help me write an app across as many platforms as possible, but just how does this work? Does it run in the browser or as a stand alone app on the phone/tablet? I'm not keen on the browser thing. I want it to be on the phone itself. What is the best tool? How does this compare with somthing like Corona or RhoStudio?

    — answered February 2nd 2012 by Nick de la Hunt
  • Well it uses javascript because basically these are web-apps wrapped in native functionality.

    You CAN use html and jquery for your app, I was going to go that direction, but its going to look clunky.

    No ide.

    — answered September 15th 2010 by Josh Lewis
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.