This is a migrated thread and some comments may be shown as answers.

Intermittent IE8 JavaScript error

3 Answers 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 24 Aug 2015, 04:12 AM

Has anyone encountered an intermittent JavaScript error "'undefined' is null or not an object" when using the Grid in IE8?

It occurs with KendoUI 2015.2.805 but not 2014.3.1316. The error occurs on line 55569 in kendo.all.js (non-minified) in KendoUI 2015.2.805 (in the leafDataCells method).

The error causes the grid to not be rendered correctly (paging bar appears just below column headings) when it occurs. It works fine every time in Chrome and Firefox.

When I say intermittent, I really mean it - I can sit there pressing F5 and it might happen once every 10 times.

I'm guessing it something to do with JavaScript loading or execution timing as the less JavaScript libraries and code I have on the page the more likely it is to work. This is making it extremely hard to diagnose, as more code I remove to try to narrow down the problem, the less frequently it occurs (for example I might have to refresh the page 20 times to get it to fail once).

Removing loading of other JavaScript libraries, removing KendoUI Grid configuration JavaScript, removing other JavaScript code on the page, using minified JavaScript libraries rather than "non-minified" libraries and loading JavaScript libraries from a CDN rather than local copy will all reduce the frequency at which the error occurs, but does not eliminate it.

This also makes it hard to put up a JSFiddle to demonstrate the problem, as it happens much more frequently when using a local server.

If anyone has any suggestions I would greatly appreciate it. I have been struggling with this bug for a while.

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 26 Aug 2015, 07:41 AM
Hi,


I tried to reproduce the problem locally but to no avail – everything is working as expected on our side (I tried over 20 times refreshing page which contains "kendo.all" script loaded from our CDN). Could you please provide runable project where the issue is reproduced? This would help us pinpoint the exact reason for this behavior.

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Andrew
Top achievements
Rank 1
answered on 27 Aug 2015, 01:43 AM

Thanks Vladimir for your help.

I have attached a project which is failing frequently on a local IIS server on my workstation.

Sorry there is so much stuff in the archive - as I said, the more I remove, the less frequently it fails. 

Also included are screenshots of what it looks like when it works and what it looks like when it fails.

Note: The archive is actually a 7zip archive as I couldn't get it below 2MB using standard zip format. The .zip extension will need to be removed.

Thanks again,

Andrew

0
Vladimir Iliev
Telerik team
answered on 28 Aug 2015, 01:20 PM
Hi Andrew,

After inspecting the provided project it appears that the error is thrown only when using "getScript" method of jQuery:

Also I notice that there are two jQuery script includes on the page - I would strongly suggest to remove the second one as current configuration is invalid. 

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or