3.2.0

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
November 26,
the title should read Context
November 26,
(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)
November 28,
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
November 29,

This topic is archived.

See also:


Back to support forum