Facebox
Facebox
manishyadav
Posts: 2Questions: 0Answers: 0
Help me in implementing facebox , for the admin template I had bought
This discussion has been closed.
Replies
Allan
I have tried harder....but unable to get the thing ready.
But when i had implemented the datatable but my data is not using server side call for the result the facebox applied is ok.
Now I have converted the data to dynamic , everything is coming fine , but when I try to work for a fancybox or popup , it fails to get things done.
Below is the script I had used for fetching the data....Now i would really appreciate if u can look into it or provide some other idea.
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "server_side/scripts/manageHospital_activity.php?outId=2",
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
$('td:eq(0)', nRow).html(""+aData[0]+"
"+aData[2]+"
"+aData[3]);
if(aData[1] == ""){
$('td:eq(1)', nRow).html("---");
}else{
$('td:eq(1)', nRow).html(''+aData[1]+'');
}
if(aData[4] == "null"){
$('td:eq(2)', nRow).html("No country
");
}
else{
$('td:eq(2)', nRow).html(""+aData[4]+"
");
}
$('td:eq(2)', nRow).html(aData[5]);
$('td:eq(3)', nRow).html(aData[7]);
$('td:eq(4)', nRow).html(aData[10]);
$('td:eq(5)', nRow).html(aData[11]);
$('td:eq(6)', nRow).html(""+aData[12]+" - "+aData[13]);
$('td:eq(7)', nRow).html('');
return nRow;
},
"fnServerData": function( sUrl, aoData, fnCallback, oSettings ) {
oSettings.jqXHR = $.ajax( {
"url": sUrl,
"data": aoData,
"success": fnCallback,
"dataType": "jsonp",
"cache": false
} );
}
} );
} );
Allan