"g.toLowerCase" when adding table data as int

"g.toLowerCase" when adding table data as int

conryfconryf Posts: 2Questions: 0Answers: 0
edited July 2010 in General
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

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I'd suggest upgrading to the 1.6.2 release to start with and see if that helps. I hope it will as there has been some work done on this in the past. If it still doesn't do the trick - let me know!

    Regards,
    Allan
  • conryfconryf Posts: 2Questions: 0Answers: 0
    Oops, I was looking at my version of jQuery. Apparently I'm already using 1.7.0. Should I try downgrading?

    Thanks so much for your help, this is a really exceptional plugin!
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi conryf,

    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
This discussion has been closed.