Data table not show on IE7 IE8 ...

Data table not show on IE7 IE8 ...

netmannetman Posts: 15Questions: 0Answers: 0
edited February 2010 in General
I've read some other topics regarding almost the same issue but haven't manage to find a solution/answer.
So, i decided to post this new topic regarding this strange behavior.
I have a dynamicaly updated table that "works" just fine with Firefox, Chrome, Safari, Opera, but not with MSIE 7/8.
In order to demonstrate this strange behavior i've uploaded e test page, where you can find
a) The DataTables initialization "script"
b) The json data source file

URL: http://www.meteorasis.gr/ajaxapps/tables/0.0.5_14_MS.htm

Thank you very much in advance.
Regards
Steve

Replies

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    Hi Steve,

    You've got a comma at the end of your array. If you run your json through http://jsonlint.com you'll see it's not valid with that comma in there. Firefox and Safari are (wrongly imho) tolerant of that. IE is not :-)

    Allan
  • netmannetman Posts: 15Questions: 0Answers: 0
    YES ...
    There were 3 errors

    1) The comma that you mentioned
    2) Values need to be enclosed within double " " quotes (I had single quotes ' ' )
    3) I had some "comments" (Total Number of Values + TIme spend for the json file to be produced) at the end of the file. Json doesn't really allow for comments, only values/data.

    Thank you very much for your help.
    Regards
    Steve
This discussion has been closed.