fnDeleteRow and fnDraw, none works =(
fnDeleteRow and fnDraw, none works =(
Hi,
I have this code:
[code]
$('#acc_eliminar').click( function() {
var sData = $('input:checked', oTable.fnGetNodes());
if (sData!=''){
var spots = '';
for(i=0; i
oTable.fnDraw();
alert("UPDATE!");
[/code]
What it does?
Takes the ID's of the checked fields and pass them to other page with AJAX, modal windows (jquery UI), the other page receive the ID's and delete them from the database.
And where's the problem?
I execute oTable.fnDraw(); but the table still the same! it should be updated with the proper DOM fields... I tried this to:
$('#tr_<?=$ids[$i]?>').remove();
so, I see how that is deleted, but when I resort by clicking in the fields, that appear again... what can I do?
thanks
I have this code:
[code]
$('#acc_eliminar').click( function() {
var sData = $('input:checked', oTable.fnGetNodes());
if (sData!=''){
var spots = '';
for(i=0; i
oTable.fnDraw();
alert("UPDATE!");
[/code]
What it does?
Takes the ID's of the checked fields and pass them to other page with AJAX, modal windows (jquery UI), the other page receive the ID's and delete them from the database.
And where's the problem?
I execute oTable.fnDraw(); but the table still the same! it should be updated with the proper DOM fields... I tried this to:
$('#tr_<?=$ids[$i]?>').remove();
so, I see how that is deleted, but when I resort by clicking in the fields, that appear again... what can I do?
thanks
This discussion has been closed.
Replies
La verdad es que no, lo omiti y ahora realizo otra cosa... esa p