NaN in several cells

NaN in several cells

PearthPearth Posts: 2Questions: 0Answers: 0
edited April 2011 in General
Hello,

I use a PHP script to create an XML file. I use it to fill a google map and a table. I apply the Datatables library on this table.
In the google map, I have no problem, the data are correctly displayed. But in the table a lot of cells have "NaN" at the end of the cell value. Moreover, there are two consequences : several cells are merged and the style of the table is broken. Example : Instead of the line a b c d e f g h, it's displayed a bNaNc d eNaNf g h.

Somebody have already encountered this issue ? Any idea about the reason of this problem and the solution ?

Thanks a lot for the answers.

Replies

  • allanallan Posts: 63,133Questions: 1Answers: 10,399 Site admin
    I haven't encountered something quite like that. If I understand correctly, the table layout isn't quite right before your apply DataTables? Or is it when you apply DataTables things break? Can you link us to your example?

    Allan
  • PearthPearth Posts: 2Questions: 0Answers: 0
    Hello Alan,

    Sorry for the mistake, the problem was due to a strange bug for strings concatenation in javascript :/ It works fine now.

    Thanks a lot!
This discussion has been closed.