Hi! I've got a little problem with domready in ie6:
window.addEvent('domready', function() {
//no var key, so mainMenu should be global
mainMenu = new Menu({ menuId:'menu', type:'bar',
props:mainMenu });
});
later, in another .js, file
window.addEvent('domready', function() {
mainMenu.setStartButton({ mainIndex:6, subIndex:6,
openSub:true });
});
Safari and Firefox are just happy, but IE6 (don't know IE7) says that
mainMenu is not defined.
This seems to be a mootools 1.2.1 issue, since in another site using
1.2.0, the same classes with the same methods work fine in IE6.
Any idea? Is that maybe the two domready don't execute in sequence?
If can be of help, I can post links to pages.
Bye!