titanium - how begin with appcelerator for desktop (and use the API's) -


i've bit experience qt+ , creating not complex web pages, don't know how begin titanium...when run default app work...i can change index.html web page...i can include javascript code , jquery too...very nice...but when try run api functions don't know how include these...all examples talk iphone , app.js file...i'm trying make desktop app , don't appear .js...i can create these don't work

...in docs read things these:

var win = ti.ui.createwindow(); var view = ti.ui.createview({backgroundcolor:"red"}); win.add(view); win.open(); 

i don't know i've put code...i try put inside javascript inside html (bad practice!) don't work...i put inside function onload don't work neither.....there "convention" names files work?...i think create dynamic web page don't know how work api....i see example "kitchen something" wasn't clear mee...i see examples this: http://mobile.tutsplus.com/tutorials/appcelerator/appcelerator-using-json-to-build-a-twitter-client/ seems work different when ipod when desktp app...i create app.js (like tuto) , put code inside never run...i source code , need create .js , inside "home.html" link it..but don't work...i create index.js don't work neither please help..i'm noob...thanks

aaron: reply kindly brought have been solution made me lose more 15 minutes of time, these first online courses have info how create new project default html file, not original poster's issue.

the original poster's issue has new project index.html file, no app.js file.

and doesn't understand put sampe code :

var win = ti.ui.createwindow(); var view = ti.ui.createview({backgroundcolor:"red"}); win.add(view); win.open(); 

... whatever puts in app.js not executed.

the documentation in titanium dev center fails provide accurate information mentions titanium mobile app.js , not speak of index.html in application structure.

after starting experience on titanium mobile, had work on titanium desktop andactually had same problem angel_ang, brought me here.

so, here real answer :

  • titanium desktop applications not need or start app.js file, index.html.
  • deleting or removing file never works still launched last build if need be.
  • adding app.js never run index.html run starting place.

something should have been solution found following link: http://www.youtube.com/watch?v=lggvnb2nkkc&nr=1

this video 2 online courses further link supplied aaron. @ 0.19 seconds exactly, see starting code has added index.html.

you need put ... in head section, , add function() there.

you may put sample code inside function. may set function run when click button ().

unfortunately, doesn't work me either. tried example code above other example (notification) mentioned in online course.

it seems deprecated here , many documentations outdated. answer situation helpful , many newcomers.

we have index.html can't use, instead of running app.js file.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -