Hi All, i would like to pass the variable clickedFlight in Jquery in view to one of the functions 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; }); -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/6ac6ae1f-a579-465c-bfd5-f024bf194edb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.