msilka
(Msilka)
December 2, 2016, 1:06pm
1
I am a first time user with the product and am going through the examples listed on the site.
When I view with Internet Explorer, I receive the following error.
JavaScript critical error at line 144, column 336 in http://localhost:53394/Scripts/handsontable/handsontable.full.js\n\nSCRIPT1028: Expected identifier, string or number
If I view with Firefox or Chrome, the control works as expected.
Can anyone direct me to a solution for IE 11?
Best regards,
Hi @msilka
Can you load your table setting into this JSFiddle http://jsfiddle.net/cp7vpq0m/ ?
msilka
(Msilka)
December 2, 2016, 3:34pm
3
Yes, I loaded my code into it and it run as expected.
Code is below
document.addEventListener(“DOMContentLoaded”, function () {
var
container1 = document.getElementById('example1'),
data = [
['Test1','Test2','Test3']
],
hot1;
hot1 = new Handsontable(container1, {
// data: Handsontable.helper.createSpreadsheetData(40, 6),
colWidths: 47,
rowHeaders: true,
colHeaders: true,
contextMenu: true,
afterCreateCol: function(changes, source) {
this.setDataAtCell(0, 0, ‘FF’);
alert(‘hi’);
},
afterChange: function () {
// alert(‘changed’);
}
});
hot1.loadData(data);
});
msilka
(Msilka)
December 2, 2016, 4:02pm
4
Also, when debugging in IE 11, I am receiving Handsontable is “undefined”.
msilka
(Msilka)
December 2, 2016, 6:03pm
5
It seems to be an issue with the following line of code
I did change to have it localized but am still receiving the SCRIPT1028 with IE 11.
msilka
(Msilka)
December 2, 2016, 10:24pm
6
Issue seems to be with the “{ default :” portion of the script.
Anywhere this string appears, IE cannot parse it.
msilka
(Msilka)
December 3, 2016, 12:25pm
7
Ok, I googled the SCRIPT1028 error and found cases where if IE was in compatibility view, that would cause it to bring up the SCRIPT1028.
I had my localhost site in my list of sites for compatibility view.
I removed it from the list and the table generated correctly in IE without any errors.
Wow, thanks for sharing updates @msilka I would have never thought about that.
Glad it works as expected now.