:: Forum >>

Context Menu

Hi all
I need that on rigth click a pop up menu apears, and i need to pass a hidden column that holds the id, up to here I've made this to work.
But i need to know the position of the click in order to show the context menwhere the click has been made
thanks a lot
Julian
Julian
Friday, November 26, 2004
the title should read Context
Friday, November 26, 2004
(I have corrected the title :-)

The event object is passed as a first argument into the event handler function:

obj.setEvent("oncontextmenu", function(event){
    alert(event.x + " " + event.y);
});
Alex (ActiveWidgets)
Sunday, November 28, 2004
Hi this works perfect, buy how do it prevent reall IE ContextMenu to appear?
To prevent this i've tried the following code, buy i dont know how to pass the event object
var row = new Active.Templates.Row;
row.setEvent("oncontextmenu", function(){this.action("myAction")});
obj.setTemplate("row", row);

obj.setAction("myAction", function(){alert('Hello')});
Julian
Monday, November 29, 2004

This topic is archived.


Back to support forum

Forum search