JavaScript error with Kendo - ONLY when using IE10

10 posts, 0 answers
  1. voripteth
    voripteth avatar
    10 posts
    Member since:
    Apr 2007

    Posted 25 Sep 2013 Link to this post

    I created a VS2012 project using the C# Kendo MVC web wizard (2013 MVC Q2) and ran the project without making any other changes.  The app runs but I see the following exceptions in the Output window when I run the page in IE10  (v10.0.9200.16686):
    • Exception was thrown at line 4, column 9009 in http://localhost:6616/Scripts/kendo/2013.2.918/jquery.min.js
    • 0x800a139e - JavaScript runtime error: SyntaxError
    • Exception was thrown at line 4, column 9238 in http://localhost:6616/Scripts/kendo/2013.2.918/jquery.min.js
    • 0x800a139e - JavaScript runtime error: SyntaxError

    The app appears to run but the exceptions are a bit disconcerting.   Run the same project in Chrome or Firefox and there are no errors in the output window.  Is this a problem with Kendo or with IE10?
  2. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 26 Sep 2013 Link to this post

    Hi Mike,

    The only reason for the problem that I can think of is the following:

    http://www.kendoui.com/forums/kendo-ui-framework/general-discussions/q2'13-release---unable-to-get-property-jquery-of-undefined-or-null-reference-invalid-regular-expressions-or-expected-js-errors.aspx

    Otherwise we are not aware of a similar issue and I cannot reproduce it in a newly created Kendo UI MVC project with VS2012.

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. voripteth
    voripteth avatar
    10 posts
    Member since:
    Apr 2007

    Posted 26 Sep 2013 Link to this post

    Another response I got pointed to a StackOverflow question here

    What doesn't add up is that the errors are syntax errors.  They aren't runtime exceptions.  Its interesting that you cannot reproduce it.  Are you using Kendo 2013.2.918?  
  5. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 26 Sep 2013 Link to this post

    Hi Mike,

    >> Perhaps a bad copy of Jquery got released?

    This is unlikely and I cannot confirm it. Did you try the suggestion in the forum thread? You can also try with a different copy of jQuery, but make sure it is a compatible version.

    http://docs.kendoui.com/getting-started/javascript-dependencies#jquery-version

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. voripteth
    voripteth avatar
    10 posts
    Member since:
    Apr 2007

    Posted 26 Sep 2013 Link to this post

    Trying to fix this I uninstall KendoUI and use Telerik Control Panel to re-install.  I then rebuilt a KendoUI we project with C# and ran it in IE10...

    Exception was thrown at line 4, column 9009 in http://localhost:28255/Scripts/kendo/2013.2.918/jquery.min.js
    0x800a139e - JavaScript runtime error: SyntaxError
    Exception was thrown at line 4, column 9238 in http://localhost:28255/Scripts/kendo/2013.2.918/jquery.min.js
    0x800a139e - JavaScript runtime error: SyntaxError

    :(
  7. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 27 Sep 2013 Link to this post

    Hi Mike,

    Please send the project, which exhibits the unexpected behavior, for further inspection.

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. voripteth
    voripteth avatar
    10 posts
    Member since:
    Apr 2007

    Posted 27 Sep 2013 Link to this post

    Attached is the generated KendoUI project that demonstrates the problem.  Note that the javascript with the error is from the scripts/kendo folder.

    Exception was thrown at line 4, column 9009 in http://localhost:31182/Scripts/kendo/2013.2.918/jquery.min.js
    0x800a139e - JavaScript runtime error: SyntaxError
    Exception was thrown at line 4, column 9238 in http://localhost:31182/Scripts/kendo/2013.2.918/jquery.min.js
    0x800a139e - JavaScript runtime error: SyntaxError
  9. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 27 Sep 2013 Link to this post

    Hello Mike,

    The provided project does not trigger any Javascript errors on my side. I am using IE10 version 10.0.9200.16438. Also tested in the different browser modes.

    Probably the issue is related to

    http://stackoverflow.com/questions/15145108/running-jquery-crashing-on-ie10-win7

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  10. Marco
    Marco avatar
    20 posts
    Member since:
    May 2011

    Posted 02 Nov 2013 Link to this post

    Hi I have got the same issues.

    Exception was thrown at line 4, column 9009 in http://localhost:49293/Scripts/kendo/2013.2.918/jquery.min.js
    Is there any solution to this?

    The reason I am investigating this, is because of a (could be) related issue. None of the client side validation works anymore in my VS2012 MVC4 project with Kendo..
  11. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 04 Nov 2013 Link to this post

    Hi Marco,

    We have provided all the information we have on this issue above. Based on the suggestions in the jQuery bug tracking system and StackOverflow, please do not break on caught exceptions.

    If the validation issue turns out to be caused by something else, please provide a runnable demo in a separate forum thread or a support ticket. Alternatively, if you find out what exactly triggers the Javascript error and it is Kendo UI - related, you can provide a demo here.

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready