torzep / custom-context-menu

Automatically exported from code.google.com/p/custom-context-menu
Other
0 stars 0 forks source link

non functional on WinXP IE 6 #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
in both versions on XP SP2 IE6.0 with Flash 9.0.45.0 I get a JavaScript
error ‘object doesn’t support this property or method’ for the line
function ‘event.stopPropagation()’ in the function ‘rightClick’ - 
shouldn’t
it be ‘event.cancelBubble’? Certainly when I did something similar in IE I
created a function called userRightClicked which contained the code I
wanted to run and, at the end, the following lines:
window.event.keyCode = 0;
window.event.returnValue = false;
window.event.cancelBubble = true;
return false;
I then assigned this function to document.oncontextmenu - that all seemed
to work ok.

in Firefox 2.0.0.6 on same OS, I get ‘event is not defined
http://polygeek.com/flash/custom_rightClick/Flash/rightClick.js
Line 21′

You’re never going to get it to work perfectly in Firefox as it has a
setting that allows users to disallow JavaScript from mucking around with
the context menu… ‘tools>options>content>advanced’

Original issue reported on code.google.com by DanFlo...@gmail.com on 18 Aug 2007 at 11:43