Hi,

Am 29.09.2006 um 11:13 schrieb Edmond Lee:

>>> qx.OO.defineClass("AtWebIM", qx.core.Object,
>>> function () {
>>>   qx.core.Object.call(this);
>>> qx.ui.core.ClientDocument.getInstance().addEventListener 
>>> ("createlogineve
>>> nt",function(event){
>>>     alert("test alert!!");
>>>     var login = _createLoginWindow("123","123");

Change this line to:

var login = this._createLoginWindow("123", "123");

(_createLoginWindow is a member of your class, not a local or global  
function.)

>>>     login.setLocation(350, 100);
>>>     login.open();
>>>   });

Change this line to:

}, this);

(This way, the event listener is called in the context of your class  
instance - this is necessary if you want the "this" keyword to work  
inside the listener.)

>>>     var btn = new qx.ui.form.Button("Login", "icon/16/apply.png");
>>>     btn.setHorizontalAlign("right");
>>>     btn.addEventListener("click", function() {
>>>             qx.ui.core.ClientDocument.getInstance().dispatchEvent(
>>> new qx.event.type.DataEvent("createloginevent","1234" ) );
>>>     });
>>>     btn.addToDocument();
>>>
>>> });

Regards,

   Andreas


-------------------------------------------------------------------------
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