Hi All, i would like to pass the variable clickedFlight in Jquery in view to one of the functions named custom_view_search in view.py in controller. Please show me how. Thanks
$(document.body).on("contextmenu", "table tr", function(e) {
var tableData = $(this).children("td").map(function(){
return $(this).text();
}).get();
var clickedFlight = tableData[0]
alert(clickedFlight);
contextMenu.css({
display: "block",
left: e.clientX,
//TODO: figure out why I have to hardcode this value to get the menu to appear in correct place
//...Y axis page value not correctly displaying on table
top: e.clientY - 80
});
return false;
});