"g.toLowerCase" when adding table data as int
"g.toLowerCase" when adding table data as int
I'm having trouble with a integer column causeing the javascript error "g.toLowerCase is not a function." I found another forum thread that claimed this had been solved in 1.4.1 (I'm using 1.4.2) but I am getting the error. Here is on onReady statement:
[code] $("#routePopUp").fancybox({'titlePosition' : 'inside', 'transitionIn' : 'none', 'transitionOut' : 'none' });
$("#studentTable").dataTable( {
"sDom" : '<"H"ifr>t<"F">',
"aoColumns": [
/* internal id */ { "bSearchable": false,
"bVisible": false },
/* */ null,
/* */ null,
/* null,*/
null
]
});
[/code]
and here is the offending code:
[code]
for( i=0; i
[code] $("#routePopUp").fancybox({'titlePosition' : 'inside', 'transitionIn' : 'none', 'transitionOut' : 'none' });
$("#studentTable").dataTable( {
"sDom" : '<"H"ifr>t<"F">',
"aoColumns": [
/* internal id */ { "bSearchable": false,
"bVisible": false },
/* */ null,
/* */ null,
/* null,*/
null
]
});
[/code]
and here is the offending code:
[code]
for( i=0; i
This discussion has been closed.
Replies
Regards,
Allan
Thanks so much for your help, this is a really exceptional plugin!
Interesting! Are you able to post a link to an example of this happening (or send the link to my directly, if you don't want to make it public, at http://datatables.net/contact )? It would be great to track this one down!
I would guess that one of the elements in your array is an integer, but DataTables is creating it as a string... In fact 'i' as you point out from the casting. Definitely a bug in DataTables. I'm working on a new beta of 1.7 just now - hope to get this one fixed for that release.
Regards,
Allan