Hello there!!
Iam working on a project in school, its to create a mobile app. I goes fine, but have been stuck on this problem for i while now.
I think that it has something with the eventlistener to do, but i dont have any suggestions of thoughts how i can solve that.
Becouse when i click on the eventlistener a new window could pop up, it does but it contains a error message which says. "Cannot call method "open". I have googled this problem but cant find any defects with the code which look like this:
I create a eventlister..use two variables...require a file to one of the variables, then put that equal to the other one and then open it if you click on the label i created further up in the code!LatestTipsLabel.addEventListener('click', function(){ "use strict"; var LatestWin, LatestInc; LatestInc = require('/latest'); LatestWin = LatestInc; LatestWin.open(); });
It complain that "LatestWin.open" cant be done...i dont know hove to solve it..have posted a simular question on appcelerators own forum but no one knew something about it..so i ask you now!
All help is greatful!
Thanks!
--- Update ---
The code also looked like this: [CODE]LatestTipsLabel.addEventListener('click', function(e){
"use strict";
var LatestWin, LatestInc;
LatestInc = require('/latest.js');
LatestWin = new LatestInc.OpenLatest();
LatestWin.open();
});[CODE]
But if i use this code.. i get error on line 60: "Cannot read propery "openLatest" of undefined"