Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q969, September 06, 2000 at 08:19:23:

You are here: irt.org | About | Feedback | 1717 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q969

Sent by
Janne Ikonen on September 06, 2000 at 08:19:23:

Worth:
Very worth reading

Comments:
There is error in that second script that uses activeX component, in function cancelmenu(e), there are 2 closings ( } ) too much, there should be only 3 closings, becouse 1 closing is made after third "if" and second after "else".
Here is it at the way it works:
<html>
<head><title>Something</title>

<script language="JavaScript">
menuon=false;

function cancelmenu(e) {
if (document.all) {
if (event.button == 2) {
menuon=true;
if (popmenu.readyState==4) {
popmenu.RemoveAllItems();
popmenu.AddItem("","","","");
popmenu.Popup (event.x,event.y);
}
else
alert("Please wait. Page Loading...")
}
if (event.button == 1)
if (menuon) {
popmenu.RemoveAllItems();
popmenu.Popup (event.x,event.y);
menuon=false;
}
}
}
document.onmousedown = cancelmenu;
</script>

</head>

<body>

<object id="popmenu" width=0 height=0 classid="CLSID:F5131C24-E56D-11CF-B78A-444553540000" codebase="http://activex.microsoft.com/controls/iptdweb/ikcntrls.cab">
<param name="_Version" value="65536">
<param name="_ExtentX" value="2646">
<param name="_ExtentY" value="1341">
<param name="_StockProps" value="0">
</object>

</body>

</html>

ps. I had to take comments out from <script> definition becouse they hided script so it wouldnt show with this submit.


Other feedback on 'irt.org FAQ Knowledge Base Q969' - show all

©2016 Martin Webb