I presume that "new" is not inside the DataTable? In which case I don't see how DataTables would effect the fancy box init at all. Any errors shown in Firebug?
Fancybox works for me in my table, however once the entrie amount is changed, it stops working.
Anyway, try this for yours:
$('#customTable).dataTable( {
"aaData": a1,"bFilter" : false,"aoColumns": [
{"mDataProp": 0},
{"mDataProp": 1},
{"mDataProp": 2},
{"mDataProp": 3},
{"mDataProp": 4},
{"mDataProp": 5},
{"mDataProp": 6},
{"mDataProp": 7}
]
Replies
Allan
Allan
js:
$(document).ready(function(){
$("#new").fancybox({
'hideOnContentClick': false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : true,
'href' : '',
'autoDimensions': false,
'width' : 400,
'height' : 200
});
});
line html:
New customer
This have to work indepen of Datatables, and before worked.
The code of dateTables is:
$('#customTable).dataTable( {
"aaData": a1,
"bFilter" : false,
"aoColumns": [
{"mDataProp": 0},
{"mDataProp": 1},
{"mDataProp": 2},
{"mDataProp": 3},
{"mDataProp": 4},
{"mDataProp": 5},
{"mDataProp": 6},
{"mDataProp": 7}
]
} );
Thanks for all, Allan.
Allan
Anyway, try this for yours:
$('#customTable).dataTable( {
"aaData": a1,"bFilter" : false,"aoColumns": [
{"mDataProp": 0},
{"mDataProp": 1},
{"mDataProp": 2},
{"mDataProp": 3},
{"mDataProp": 4},
{"mDataProp": 5},
{"mDataProp": 6},
{"mDataProp": 7}
]
$("#new").fancybox()
} );
Allan