Re: Window widget events not firing

Mark Anderson <[email protected]>
Newsgroups gmane.comp.windows.devel.netwindows
Message-ID <[email protected]>
> in the onload event of the page we load we create a 'new' of the class 
> that is utilized for connecting the button events:
> onload='javascript:(new CustomerSearch()).constructor();'
> 
> and in the constructor method we have:
> __sig__.connectOnceByName(document.getElementById("cancelButton"), 
> "onclick", this, "cancelClicked");    

Just for the sake of debugging, how about this:

var cancelb = document.getElementById("cancelButton");
if (!cancelb) throw Error("no cancelButton!");
if (!this.cancelClicked) throw Error("no cancelClicked!");
var this_ = this;
NW_addEventListener(cancelb, 'click', function() {alert('calling cancelClicked'); this_.cancelClicked();});

where NW_addEventListener is in latest cvs.

---
the defensive programming above is just to sanity check.
the use of a different event registration is to determine if this
is a sigslot issue (i'm guessing you are using sigslot_core2 not sigslot classic?)

-mda



_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.