Hmm, I'm having trouble again.  For some reason eventlisteners are not
picking up events launched by other classes or other objects.  for example, 

in class mywidget, i have:

proto.addevent(){
  this.addEventListener("myevent", myeventf);
}
function myeventf(e){
   alert("successful call of event!");
}

proto.local_launch(){
   this.dispatchEvent(new QxDataEvent("blah", this), true);
}




then in class OtherClass, i have

proto.launch(){
   this.dispatchEvent(new QxDataEvent("blah", this), true);
}


and in my html page main function,

var w1 = new mywidget();
var w2 = new mywidget();
var w3 = new OtherClass();
this.add(w1,w2, w3);

w1.addevent();
w1.local_launch();  // results in successful alert
w2.local_launch();  // nothing
w3.local_launch(); // nothing

I really need the two unsuccessful cases to work as well.  Is there some
property in the event I need to set or something so it propogates to other
classes and object instances?

- Jon
-- 
View this message in context: 
http://www.nabble.com/Simple-Event-Handling-Question-%28newbie%29-tf1985199.html#a5486785
Sent from the qooxdoo-devel forum at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to