Apologies if I'm missing something obvious (quite possible).
Two dataTables have no problem co-existing but I can't get the Editor portions to do likewise. I have TableTools working fine on both, too.
They have no trouble initializing, but with code akin to the below I get the following issue. Table 1's New and Edit buttons work as advertised. If I click Table 2's Edit button I get "typeError: b is undefined", and its "New" button brings up the dialog for adding an entry to Table 1.
Any help appreciated!
Oh, and I have the latest versions of everything as of September 30th, I believe.
Thanks, Iain
Two dataTables have no problem co-existing but I can't get the Editor portions to do likewise. I have TableTools working fine on both, too.
They have no trouble initializing, but with code akin to the below I get the following issue. Table 1's New and Edit buttons work as advertised. If I click Table 2's Edit button I get "typeError: b is undefined", and its "New" button brings up the dialog for adding an entry to Table 1.
Any help appreciated!
Oh, and I have the latest versions of everything as of September 30th, I believe.
Thanks, Iain
var editor_1; var editor_2; var datatable_1; var datatable_2; $(document).ready(function() { editor_1 = new $.fn.dataTable.Editor( { "domTable": "#table_1", .... blah .... }); editor_2 = new $.fn.dataTable.Editor( { "domTable": "#table_2", .... blah .... }); datatable_1=$('#table_1').dataTable( { .... blah .... }); datatable_2=$('#table_2').dataTable( { .... blah .... }); }