Question

Does anyone know if there are any known issues subscribing to events fired by a YUI2 DataTable when using with YUI3 2in3? I'm trying to do the following and it's not working:

myDataTable.subscribe("initEvent", function(){
   Y.log('******** hello from initEvent');
});   

Other features of the DataTable seem to be working but I can't seem to tap into any events.

Does anyone else have issues with this? Any suggestions?

Thanks,
Bart

Was it helpful?

Solution

Bart,

http://ericmiraglia.com/yui/demos/2in3dt.php

Subscribing to the init event and the row click event seems to work using your syntax above. Is there something different about your implementation? Or perhaps the init event has already fired at the point where you're listening for it?

-Eric

OTHER TIPS

Sanity check: is the YUI2 event module loaded? Also, try loading the YUI2 logger, and make sure you are referencing the debug version of the scripts. The output is verbose, but usually shows where the problem is.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top