Titanium Community Questions & Answer Archive

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

Live Updating in the iPhone Simulator

Can someone explain this to me? This is most impressive but I don't get it..?

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/iRQH0EwNlzE?fs=1&amp;hl=de_DE"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/iRQH0EwNlzE?fs=1&amp;hl=de_DE" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>

— asked November 15th 2010 by Marvin Blase
  • iphone
  • live
  • simulator
0 Comments

2 Answers

  • From what I have read, app.js (and maybe your other js files) are not compiled when run in the simulator. The simulator is running your js code in much the same way you'd expect in a webview or in a standard web page / browser environment. It's only when you go through the steps to run your app on an actual phone that it gets compiled and turned into the native code. AFAIK this isn't true on Android. I wish it were! It would save a lot of time tweaking the UI.

    — answered November 15th 2010 by Tim Poulsen
    permalink
    0 Comments
  • Yes Tim, you are right.

    Besides this the results.js file is called each time you open the new window, so that's why the changes are "live" and the ones in app.js or other files loaded only when the app starts are not.

    — answered November 15th 2010 by Dan Tamas
    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.