TableTools "T" Causing JS Error
TableTools "T" Causing JS Error
apadley
Posts: 2Questions: 0Answers: 0
I have a working dataTable. I want to add TableTools. As soon as I add a T to the sDom declaration I get the following javascript error in Firebug:
document.getElementsByTagName("title")[0] is undefined
[Break On This Error] sTitle = document.getElementsByTagName('title')[0].innerHTML;
with a reference to TableTools.js line 455
I am using jQuery 1.4.4 and jQuery UI 1.8.7 both loaded from the Google CDN. TableTools is version 1.1.4. DataTables is either version 1.6 or 1.7.5 .
Here is the simple code I'm using.
[code]
$(document).ready(function() {
TableToolsInit.sSwfPath = "../media/swf/ZeroClipboard.swf";
oTable = $('#roster').dataTable({
"bJQueryUI": true,
"sAjaxSource": 'ajax/event_roster.php',
"sDom": '<"H"lfrT>t<"F"ip>'
});
});
ID
First
Last
Email
Phone
Region
Youth
ID
First
Last
Email
Phone
Region
Youth
[/code]
Table renders perfectly without the T in sDom, but throws the error when the T is added.
I'm pretty sure I've missed something, but can't figure out what.
document.getElementsByTagName("title")[0] is undefined
[Break On This Error] sTitle = document.getElementsByTagName('title')[0].innerHTML;
with a reference to TableTools.js line 455
I am using jQuery 1.4.4 and jQuery UI 1.8.7 both loaded from the Google CDN. TableTools is version 1.1.4. DataTables is either version 1.6 or 1.7.5 .
Here is the simple code I'm using.
[code]
$(document).ready(function() {
TableToolsInit.sSwfPath = "../media/swf/ZeroClipboard.swf";
oTable = $('#roster').dataTable({
"bJQueryUI": true,
"sAjaxSource": 'ajax/event_roster.php',
"sDom": '<"H"lfrT>t<"F"ip>'
});
});
ID
First
Last
Phone
Region
Youth
ID
First
Last
Phone
Region
Youth
[/code]
Table renders perfectly without the T in sDom, but throws the error when the T is added.
I'm pretty sure I've missed something, but can't figure out what.
This discussion has been closed.
Replies
Allan
[code]
Error: clip.setAction is not a function
Archivo de origen: http://localhost/js/TableTools.js
L