NaN in several cells
NaN in several cells
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.
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.
This discussion has been closed.
Replies
Allan
Sorry for the mistake, the problem was due to a strange bug for strings concatenation in javascript :/ It works fine now.
Thanks a lot!