Rank: Member Groups: Member
Joined: 7/28/2014 Posts: 10
|
Hello EO support,
In our application we need a context menu (html/JS) on specific elements (those elements can be inside iframes) we used a jquery plugin, we also have implemented a generic WPF context menu with webViewEO_BeforeContextMenu for all element. The probleme is on specific elements a right click will trigger both context menu to appear; I tryed to resolve this by calling javascript inside BeforeContextMenu in order to detect if its a specific element, unfortunately I can't evalScript in BeforeContextMenu event.
Do you know how can I achieve this ?
Regards
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
Please try to load the same page in a regular web browser such as Google Chrome and see if you see both context menu. BeforeContextMenu corresponds to the browser's own context menu. So if you see both your JavaScript context menu and BeforeContextMenu in EO.WebBrowser, then you should see both your JavaScript context menu and the browser's own context menu if you load your page in a browser. In that case you will need to fix the problem in your web page. Usually if you display a context menu through JavaScript, you should cancel the right click event in your script so that the default browser context menu does not open.
Thanks!
|