Titanium Index.html
Solution 1:
Sounds like you created a default alloy project, all the app/controllers/index.xml
file does is load another controller, probably called FirstView or something like that. Look through your views
directory inside the app
directory for another .xml
file.
The structure of Alloy is that the index.xml
file is loaded first no matter what, so it is not even recognizing your index2.xml
. I would highly recommend you go through the Alloy Quick Start to get the general concepts first.
Solution 2:
I think you are working with titanium alloy.
if so, your file should be index.xml and not index.html
index.xml contains as a child node of node.
for allow project you can find index.xml file and for the same file there is a controller file in folder app/controller/index.js.
in index.js file there must b a following line
index.open()
this line will open the index.xml file in your app.
Note : if you have given id attribute to window node in xml than you should use $..open(). this should work fine.
Solution 3:
It should be index.xml
and body should be like this:
<Alloy>
<Window id="xyz">
</Window>
</Alloy>
Then there should be index.js
file where you have to call this xml file by id:
$.xyz.open();
Post a Comment for "Titanium Index.html"