aoColumns bug on IE7 and IE8

aoColumns bug on IE7 and IE8

Snake85Snake85 Posts: 2Questions: 0Answers: 0
edited February 2013 in General
Those lines are not working on IE7 and IE8
It return javascript error.

"aoColumns": [
{ "bSortable": false },
{ "bSortable": false, "sWidth": "200px", "sClass": "datatables_center" },
{ "bSortable": false, "sWidth": "200px", "sClass": "datatables_center" },
],

Replies

  • essexstephessexsteph Posts: 57Questions: 0Answers: 0
    It may well be the final comma before the closing square bracket. I've found Chrome doesn't worry about it, but IE does. Try this:

    [code]
    "aoColumns": [
    { "bSortable": false },
    { "bSortable": false, "sWidth": "200px", "sClass": "datatables_center" },
    { "bSortable": false, "sWidth": "200px", "sClass": "datatables_center" }
    ],
    [/code]

    Steph
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Agreed - its the trailing comma.

    Allan
This discussion has been closed.