I'm trying to convert this piece of JavaScript which sets a callback in PHP to work in ASP.NET MVC 3:
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
/* Init DataTables */
var oTable = $('#example').dataTable();
/* Apply the jEditable handlers to the table */
$('td', oTable.fnGetNodes()).editable('table/examples_support/editable_ajax.php', {
"callback": function (sValue, y) {
var aPos = oTable.fnGetPosition(this);
oTable.fnUpdate(sValue, aPos[0], aPos[1]);
},
"submitdata": function (value, settings) {
return {
"row_id": this.parentNode.getAttribute('id'),
"column": oTable.fnGetPosition(this)[2]
};
},
"height": "14px"
});
});
</script>
So basically trying to work out how to make jEditable work with ASP.NET instead of PHP ...