any body help me please in
any body help me please in
pakchill
Posts: 1Questions: 1Answers: 0
i have a problem in my codes in <a onClick="TINY.box.show({url:'addproduct.php?id=full[0]'})" href="editproduct.php?id='+full[0]+'"> is not working please help me
$(document).ready(function() {
$('#myproducts').dataTable( {
"lengthMenu": [[5,10, 25, 50, -1], [5,10, 25, 50, "All"]],
"processing": true,
"serverSide": true,
"ajax":"server_side/scripts/server_products.php",
"aoColumnDefs": [
{
"aTargets":[1],
"fnCreatedCell": function(nTd, sData, oData, iRow, iCol)
{
$(nTd).css('text-align', 'center');
},
"mData": null,
"mRender": function( data, type, full) { // You can use <img> as well if you want
return '<td><img src="img/products/'+full[5]+'" height="100px" /></td>';
}
},
{
"aTargets":[5],
"fnCreatedCell": function(nTd, sData, oData, iRow, iCol)
{
$(nTd).css('text-align', 'center');
},
"mData": null,
"mRender": function( data, type, full) { // You can use <img> as well if you want
return '<td><a onClick="TINY.box.show({url:'addproduct.php?id=full[0]'})" href="editproduct.php?id='+full[0]+'"><span class="glyphicon glyphicon-pencil"></span></a> | <a href="proddelete.php?id='+full[0]+'"><span class="glyphicon glyphicon-trash"></span></a></td>';
}
}
]
} );
} )
</script>
This discussion has been closed.
Answers
First create a Minimal, Complete, and Verifiable example