Datatables warning (table id = 'datatables': Requested unknown parameter '0' from the data source
Datatables warning (table id = 'datatables': Requested unknown parameter '0' from the data source
chriscriswell
Posts: 4Questions: 0Answers: 0
Hello all,
I've read a lot of discussion about the Datatables warning and none of them so far are related to my situation.
The data loads great, without error, in Chrome, FF, Safari. In IE however, I get the standard warning, the data loads, but without the export functionality(oTableTools). I've tried all combinations of aoColumns with the same result. I suspect it has something to do with my foreach() loop using a form tag? I'm datatables in other spots without the need of echo'ing a form tag and IE DOES NOT give an error.
Any tips or guidance would be appreciated :)
LAMP configuration
jquery.js = 1.72
Datatables is 1.92
Initialization script
[code]
$(document).ready(function() {
oTable = $('#datatables').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": 'T<"clear">lfrtip',
"bAutoWidth": false,
"bSort": false,
"oTableTools": {"sSwfPath": "datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"}
} );
} );
[/code]
HTML Portion
[code]
Active Case Load:
Consumer
Service
Evidence Based
Service Location
Time
Date
Submit
Actions
<?php
foreach ($show_c_list as $r) {
echo ' ';
?>
<?=$r['Name'];?>
<?=$show_services; ?>
<?=$show_service_type; ?>
<?=$show_service_location; ?>
<?=$show_time; ?>
<?=$date; ?>
class="edit">Edit
<?php
echo "";
}
?>
[/code]
I've read a lot of discussion about the Datatables warning and none of them so far are related to my situation.
The data loads great, without error, in Chrome, FF, Safari. In IE however, I get the standard warning, the data loads, but without the export functionality(oTableTools). I've tried all combinations of aoColumns with the same result. I suspect it has something to do with my foreach() loop using a form tag? I'm datatables in other spots without the need of echo'ing a form tag and IE DOES NOT give an error.
Any tips or guidance would be appreciated :)
LAMP configuration
jquery.js = 1.72
Datatables is 1.92
Initialization script
[code]
$(document).ready(function() {
oTable = $('#datatables').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": 'T<"clear">lfrtip',
"bAutoWidth": false,
"bSort": false,
"oTableTools": {"sSwfPath": "datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"}
} );
} );
[/code]
HTML Portion
[code]
Active Case Load:
Consumer
Service
Evidence Based
Service Location
Time
Date
Submit
Actions
<?php
foreach ($show_c_list as $r) {
echo ' ';
?>
<?=$r['Name'];?>
<?=$show_services; ?>
<?=$show_service_type; ?>
<?=$show_service_location; ?>
<?=$show_time; ?>
<?=$date; ?>
class="edit">Edit
<?php
echo "";
}
?>
[/code]
This discussion has been closed.
Replies
http://debug.datatables.net/iwezub
Thanks again for fast response and guidance.
What does your SQL structure look like? Is it multiple tables with a link table or something else? Editor 1.2 which will be out at the end of the week provides a nice (imho :-) ) implement ion for working with joined tables if that is important for you.
Allan
First, fantastic support.
The SQL structure is multi table joins stored in functions. So yes, that would be of huge interest :) I'll wait to activate my trial then.
Cheers
Allan