Ciao a tutti, io ho questo javascript:
function showContextMenu(msg, state) {
if (state == 'ok') {
var menu = msg;
if (menu.length > 0) {
var cmouter = win.files.getElementById("contextmenuouter");
var cminner = win.files.getElementById("contextmenu");
cminner.innerHTML = menu;
// set menu x position
var x = 12;
cmouter.style.left = x + "px";
cmouter.style.display = "block";
// calculate menu y position before setting visibility to avoid display errors
var y = getMenuPosY(win.files, active_mouse_id);
cmouter.style.top = y + "px";
cmouter.style.visibility = "visible";
} // end if (access)
last_id = active_mouse_id;
contextOpen = true;
lockId = false;
}
}
come faccio a capire da dove vengono le vaiabili msg e state?????? cioè chi cavolo le passa a questo javascript??????