Firefox trouble
Firefox trouble
I have the following code, which works in IE9 and Chrome. In Firefox however, neither of the columns that are supposed to sort by date do so (nothing happens when I click on them), and the fnDrawCallback doesn't fire. Do I have a syntax error somewhere that IE and Chrome are more forgiving of? Can someone please help me figure out why this doesn't work in Firefox?
$(document).ready(function() {
oTable = $('#xget').dataTable({
"aoColumns": [
null,
null,
null,
null,
{ "sType": "date" },
{ "sType": "numeric-comma" },
{ "sType": "numeric-comma" },
{ "sType": "date" }
],
"fnDrawCallback": function() {
document.exportToExcelForm.excelOutput.value = document.all['xget'].outerHTML.replace("\r\n","");
document.exportToPDFForm.PDFOutput.value = document.all['xget'].outerHTML.replace("\r\n","");
},
"oLanguage": { "sSearch": "Type anything to filter this data:" },
"iDisplayLength": 25,
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
});
$(document).ready(function() {
oTable = $('#xget').dataTable({
"aoColumns": [
null,
null,
null,
null,
{ "sType": "date" },
{ "sType": "numeric-comma" },
{ "sType": "numeric-comma" },
{ "sType": "date" }
],
"fnDrawCallback": function() {
document.exportToExcelForm.excelOutput.value = document.all['xget'].outerHTML.replace("\r\n","");
document.exportToPDFForm.PDFOutput.value = document.all['xget'].outerHTML.replace("\r\n","");
},
"oLanguage": { "sSearch": "Type anything to filter this data:" },
"iDisplayLength": 25,
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
});
This discussion has been closed.
Replies
Allan
I'll doublecheck the tables and make sure they're valid. They're being generated on the fly by ColdFusion so it can sometimes get a bit confusing. Thanks for the tip.