Welcome Guest Search | Active Topics | Sign In | Register

Context menu Options
Yannou
Posted: Friday, December 5, 2014 5:13:40 AM
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
eo_support
Posted: Friday, December 5, 2014 1:30:57 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.