Titanium Community Questions & Answer Archive

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

Need Help..

Please Help…
Why am I getting this error.

[ERROR] Script Error = Result of expression 'Ti.API' [undefined] is not an object. at app.js (line 89).

And how do I get this code to work…
Ti.API.info("TEST");

Every time I add the Ti.API.info("blabal"); to the app.js I get that error. Can someone help me on this..


When I run the KitchenSink its not giving me this error.

Thank You…

P.S. It works with the Android Emulator … But not with the Iphone.

— asked September 22nd 2010 by Stephen Jeevaratnam
  • ti.api
  • undefined
0 Comments

3 Answers

  • Can you use Titanium. instead of Ti. ?
    If this does not help, post a pastie with your code.

    — answered September 22nd 2010 by Dan Tamas
    permalink
    2 Comments
    • Same Result…
      All I did was create a new project and added
      Titanium.API.info("Welcome to Titanium");
      At the end..

      — commented September 22nd 2010 by Stephen Jeevaratnam
    • http://pastie.org/1175437

      — commented September 22nd 2010 by Stephen Jeevaratnam
  • [EDITED]
    Nevermind, I was blind.

    Weird, what's the error?

    — answered September 22nd 2010 by Dan Tamas
    permalink
    0 Comments
  • The new Build some how fixed it…

    http://builds.appcelerator.com.s3.amazonaws.com/index.html
    (Sep 23 2010 00:30 r6a13666e)

    Thanks for the help…

    — answered September 23rd 2010 by Stephen Jeevaratnam
    permalink
    0 Comments
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.