Reputation: 17
My site Menus stopped working in IE 11 I am still learning but I need help to fix this issue. I am posting what I think the issue is. I don't understand the primary_nav. this was all built by a person before me. I keep reading how this (getElementsByClassName) is no longer good since IE 8 but has been working til now.
Navigation.prototype = {
initialize : function () {
this.bound_show_menu = this.show_menu.bindAsEventListener(this);
this.bound_hide_menu = this.hide_menu.bindAsEventListener(this);
var drop_menus = document.getElementsByClassName('primary_nav')[0].getElementsByClassName('drop');
for (i=0; i<drop_menus.length; i++) {
Element.extend(drop_menus[i]);
Event.observe(drop_menus[i], 'mouseover', this.show_menu);
Event.observe(drop_menus[i], 'mouseout', this.hide_menu);
}
},
show_menu : function (event) {
var elt = Event.element(event);
if (elt.hasClassName('drop')) {
elt.addClassName('over');
} else {
elt.up('.drop').addClassName('over');
}
},
hide_menu : function (event) {
var elt = Event.element(event);
if (elt.hasClassName('drop')) {
elt.removeClassName('over');
} else {
elt.up('.drop').removeClassName('over');
}
}
}
Upvotes: 0
Views: 2346
Reputation: 15
I found that javascript was not working at all on IE 11. After researching I found that there is a patch for it http://support.microsoft.com/kb/2836939. I am running Server 2003 SP2, IIS6. It seems IIS or ASP was not recognizing IE11 as a browser that supported Javascript. The patch worked for me.
I now have an problem where ReportViewer is not working with IE11, but that's another issue.
Upvotes: 0
Reputation: 15775
This appears to be a problem with outdated browser detection code in your version of the TransMenus script.
In fact it looks like Aaron Boodman fixed this issue a couple of years ago (by removing that bit of code entirely). Grab the latest versions of the CSS and JS from https://github.com/aboodman/transmenus/ and you should be good to go.
Upvotes: 1