What would be the right way to do this:
var oTable1 = $('#tabela-agenda').dataTable({
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "cadastroCarregaRegistros.php",
aoColumnDefs: [
{
"aTargets": [ 7 ],
"bSortable": false,
"data": 'ID, badge',
"mRender": function ( data, type, full ) {
return 'if ('+badge+' != ""){ "<a class="purple" href="carteirinha.php?badge='+ badge +' " onclick="return hs.htmlExpand(this, {objectType: 'iframe', width: 800, height:400 } )" title="Carteirinha"> <i class="icon-print bigger-130"></i> </a>" } <a class="blue" href="cadastroPerfil.php?id=' + ID + '&i=2a" title="Perfil"> <i class="icon-zoom-in bigger-130"></i></a> <a class="green" href="cadastroEditar.php?id=' + ID + '&i=2a" onclick="return hs.htmlExpand(this, {objectType: 'iframe', width: 800, height:400 } )" title="Editar"> <i class="icon-pencil bigger-130"></i> </a> <a class="red delete-event" href="cadastroApagar.php?id=' + ID + '&foto=foto.jpg&i=2a" title="Apagar" data-title="Apagar" data-content="Deseja apagar esse membro?" onClick="return false;"> <i class="icon-trash bigger-130"></i></a></div>';
},
"bSortable": false
}
]
});
Do not load.
ID and badge values are not showing. I used the ligthbox in the html, but in js it looks like something is wrong with 'iframe' .
Thank you all.