event onContextMenu

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Yenia

event onContextMenu

Post by Yenia » Thu Oct 27, 2005 7:10 pm

How we can rescue a javascript event (onContextMenu) generated by a mouse right click ????

Regards

Yenia.
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Thu Oct 27, 2005 7:36 pm

What do you mean with "rescue"? Do you want to simulate such a click? If yes, on what menu item?
Yenia

event onContextMenu

Post by Yenia » Thu Oct 27, 2005 8:03 pm

Yes, this code,

<style>
<!--
#ie5menu{
position:absolute;
width:140px;
border:2px solid black;
background-color:Silver;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:hidden;
}
.menuitems{
padding-left:15px;
padding-right:15px;
}
-->
</style>

<script language="JavaScript1.2">
var display_url=0

function showmenuie5(){
ie5menu.style.left=document.body.scrollLeft+event.clientX
ie5menu.style.top=document.body.scrollTop+event.clientY
ie5menu.style.visibility="visible"
return false
}

function hidemenuie5(){
ie5menu.style.visibility="hidden"
}

function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="blue"
event.srcElement.style.color="yellow"
if (display_url==1)
window.status=event.srcElement.url
}
}

function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
window.status=''
}
}

function jumptoie5(){
if (event.srcElement.className=="menuitems")
window.location=event.srcElement.url
}
</script>

</HEAD>
<BODY>
<div style="position:absolute; top:120px; left:50px; font-size: 36px; width:600px; font-family: impact;

font-weight: bold; font-style: normal; color: Black;">Pulsa el botón derecho</div>
<div style="position:absolute; top:118px; left:48px; font-size: 36px; width:600px; font-family: impact;

font-weight: bold; font-style: normal; color: orange;">Pulsa el botón derecho</div>

<!--[if IE]>
<div id="ie5menu" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()">
<div class="menuitems" url="http://www.link1.com">Primo link</div>
<div class="menuitems" url="http://www.link2.com">Secondo link</div>
<div class="menuitems" url="http://www.link3.com">Terzo link</div>
<div class="menuitems" url="http://www.link4.com">Quarto link</div>
<div class="menuitems" url="http://www.link5.com">Quinto link</div>
<hr>
<div class="menuitems" url="mailto:email@link.com">Email</div>
</div>
<![endif]-->

<script language="JavaScript1.2">
document.oncontextmenu=showmenuie5
if (document.all&&window.print)
document.body.onclick=hidemenuie5
</script>[/url]
User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Thu Oct 27, 2005 8:06 pm

Can you send me the URL of the web page that creates the problem? This would allow me to quickly re-create the issue on our test systems. Ann
Yenia

Post by Yenia » Thu Oct 27, 2005 8:23 pm

Copy code in text file and save as ejemplo.html


in spanish(copiar el codigo en un archivo de texto, y guardarlo como ejemplo.html)
Yenia

Post by Yenia » Fri Oct 28, 2005 3:01 pm

I need execute event the type onContextMenu generated by mouse right click, where the menu is onwebpagedialog for iOpus
Yenia

Post by Yenia » Thu Nov 03, 2005 3:19 pm

User avatar
Tech Support
Posts: 4948
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Post by Tech Support » Thu Nov 03, 2005 9:53 pm

Post Reply