Microsoft JScript runtime error when switching to compat mode (to test from IE9 to IE8)

Microsoft JScript runtime error when switching to compat mode (to test from IE9 to IE8)

MoiD101MoiD101 Posts: 8Questions: 0Answers: 0
edited March 2013 in General
Hi have i coded the below correctly as i wish to stop all sorting on all columns, it works fine in IE9 and none of the columns are sortable as expected. But i get a "Microsoft JScript runtime error: Unable to get value of the property 'aTargets': object is null or undefined" when i run in compatibility mode to see if works ok in IE8 mode. Unfortunately the company i work for use IE8 at the moment :/

[code] "aaSorting": [], //Remove all initial sorting (prevents the edit column being sorted initially).
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] }, //dont allow Sorting When clicking on the header.
],[/code]

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    edited March 2013
    You've got a trailing comma :-).

    Allan
This discussion has been closed.