I have a context menu that I wish to show in response to a client-side click event. This works in IE9 but not in any earlier version, nor if in compatibility mode.
After a bit of digging, and tracing into the "show()" method it appears that the method is relying on the passed event object having a "target" property, which IE appears not to support (at least prior to IE9). Instead, IE seems to use a property called "srcElement" instead.
So for the benegit of anyone else struggling with this, here's my patched code that now seems to work ok...
function onButtonClickToShowMenu(e) { if (!e.target && e.srcElement) e.target = e.srcElement; var menu = $find('mymenuId'); menu.show(e);}