how begin with appcelerator for desktop (and use the API's)
hi everybody…I've a bit experience with qt+ and creating not so complex web pages, but I don't know how begin with titanium…when I run the default app this work…I can change the index.html like a web page…I can include javascript code and jquery too…very nice…but when I try run api functions I don't know how include these…in the docs I read things like these:
var win = Ti.UI.createWindow(); var view = Ti.UI.createView({backgroundColor:"red"}); win.add(view); win.open();
I don't know where I've put this code…I try put it inside a javascript but it don't work…I put it inside a function onload but don't work neither…there are any "convention" with the names for the files for this work?…I think this is like create a very dynamic web page but I don't know how work with the api….I see the example "kitchen something" but it wasn't so clear to mee…I see a examples like this:
http://mobile.tutsplus.com/tutorials/appcelerator/appcelerator-using-json-to-build-a-twitter-client/
but seems like this work different when is an ipod to when it is a desktp app…I create an app.js and put my code inside it but it never run…I create a index.js too but it don't work neither
please help..I'm very noob…thanks
1 Answer
-
I would recommend the Getting Started with Titanium Desktop Guide as a good starting place.
After that take a look at the Titanium Desktop Programming Guides