View Full Version : No rightclick in IE 7 and Opera

24 Feb 2009, 2:38 AM
Hi, I have problems with IE7 and Opera. Both browsers dont recognize a mouse rightclick in my desktop application. FF 3, Chrome and Safari no problem.

Any suggestions?

24 Feb 2009, 4:07 AM
IE is OK - you must have made a mistake. Opera does not have a contextmenu event.

27 Feb 2009, 2:33 AM
Hi Animal,

You were right! I have added a second contextmenu to the application. That was the problem. The first one did not had a coded condition. The second one only should fire if the target.id == desktopEl. After putting them together in one eventhandler the problem was solved.
I was confused by the different way FF and IE7 handle this.
In FF both events were handled like I aspected.
In IE7 the first event was ignored, the second event was skipped because the target.id != desktopEl.
So events are not handled 100% browser independent.

thanxs for helping