addButtonSelect IE8

Greetings!
using addButtonSelect: artTool.addButtonSelect(“select”,7,“Select”,opts,‘copy.gif’,‘copy.gif’);

Works fine in all browsers except MSIE8 which throws error when method executed:

‘id’ is null or not an object.
I was using an old version, so downloaded V3 and tried again.
same error, dhtmlxtoolbar.js line29 character 117

do not remember line number with older version, but same error

var opts = [[‘0’,‘obj’,‘Folder.jpg’,’’],
[‘1’,‘obj’,‘C4080001.JPG’,’’],
[‘2’,‘obj’,‘C4080002.JPG’,’’],
[‘3’,‘obj’,‘Back.jpg’,’’],
[‘4’,‘obj’,‘1964 Cardinals back cover.jpg’,’’],
[‘5’,‘obj’,‘St. Louis Cardinals World Champions 1964 front cover LP.jpg’,’’],
];

any clues?

Thank you!
Have fun,
Paxton

Hello,

There is an unnecessary comma after the last element of an “opts” array - [… [‘5’,‘obj’,‘St. Louis Cardinals World Champions 1964 front cover LP.jpg’,’’],]

You need to remove it - [… [‘5’,‘obj’,‘St. Louis Cardinals World Champions 1964 front cover LP.jpg’,’’]]