Contex menu in datatable
Contex menu in datatable
pearly_030
Posts: 42Questions: 0Answers: 0
Hi,
From my datatable, I want to get back row's data when I click on a option of my context menu.
My source :
[code]
var oTable3 = $("#table3").dataTable({
......
"fnDrawCallback": function (){
$("#table3 tr").contextMenu({
menu: 'myMenu1'
},
function(action, el, pos) {
if (action == 'supprimer')
{
$('#dialog-form').load('supprimer.php').dialog({
........
});
};
if (action == 'passagers')
{
alert('Action: Passagers ' + el[0].cells[0].textContent);
};
oTable3.fnDraw();
$('#dialog-form').dialog('close');
}
);
}
});
[/code]
In FireFox, it's OK and KO in ie8.
An idea ?
So, dialog-form doesn't work in a context menu in FireFox and Ie8.
No dialog displayed.
Is it normal ?
Thanks
From my datatable, I want to get back row's data when I click on a option of my context menu.
My source :
[code]
var oTable3 = $("#table3").dataTable({
......
"fnDrawCallback": function (){
$("#table3 tr").contextMenu({
menu: 'myMenu1'
},
function(action, el, pos) {
if (action == 'supprimer')
{
$('#dialog-form').load('supprimer.php').dialog({
........
});
};
if (action == 'passagers')
{
alert('Action: Passagers ' + el[0].cells[0].textContent);
};
oTable3.fnDraw();
$('#dialog-form').dialog('close');
}
);
}
});
[/code]
In FireFox, it's OK and KO in ie8.
An idea ?
So, dialog-form doesn't work in a context menu in FireFox and Ie8.
No dialog displayed.
Is it normal ?
Thanks
This discussion has been closed.