JavaScript exception: _event does not exist

4 posts, 0 answers
  1. Heinrich
    Heinrich avatar
    2 posts
    Member since:
    Dec 2013

    Posted 19 Dec 2013 Link to this post

    Hi everybody!

    I get an JavaScript-exception when i'm using the RadEditor.

    Here is the scenario:
    I use the RadEditor with 2 Edit Modes (Design- and HTML-Mode). When I edit the content in Design-Mode everything works fine, especially my "Save"-function. The exception comes when i click on the Save-Button after i switch from the Design-Mode to the HTML-Mode and back (HTML-Mode -> Design-Mode).
    Then the debugger of Internet Explorer (as you can see in the picture) show me the following Exception:
    "Unhandled exception at line 558, column 1 in http://aspnet-scripts.telerikstatic.com/ajaxz/2013.3.1114/Common/Core.js

    0x800a138f - JavaScript runtime error: Unable to get property 'keypress' of undefined or null reference" (english translation)

    At the moment i have absolutely no idea where it comes from.
    So i'm glad about every helpful hint! Thank you!
  2. Ianko
    Admin
    Ianko avatar
    1934 posts

    Posted 21 Dec 2013 Link to this post

    Hi,

    The "keypress" is an event used in jQuerry. I suggest checking if there are any custom modification of the RadEditor control that could be related to this matter and lead to the thrown error.

    Note that with the provided information a proper investigation is unattainable. Please provide a simple project, which isolates the problematic behavior.

    Regards,
    Ianko
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. Heinrich
    Heinrich avatar
    2 posts
    Member since:
    Dec 2013

    Posted 24 Dec 2013 Link to this post

    Hey,

    thanks for your reply! 
    I thought it's a problem with my custom modification, too. But i was not sure. Because in my program i never use or listen to "Key"-Events like "keypress", "keyup" or "keydown".
    Additionally i don't know why the method "removeHandler" is called in the Core.js?!
    Is this documented somewhere? 

    In the next days i will try to create a small sample project und post it here in this thread. But at the moment i'm a beginner in ASP.NET and JavaScript (JAVA is my home ;-) ). So i have a lot to learn and read. Because of this, i'm glad about every helpful hint or any reference to good documentations/tutorials/etc for my problem. Thank you!

    I wish you all happy holidays! :-)
  4. Ianko
    Admin
    Ianko avatar
    1934 posts

    Posted 24 Dec 2013 Link to this post

    Hi Heinrich,

    Currently I am unable to determine why the keypress event is called in the used project. It would be better if you can provide an isolated demo project, so that I could investigate it further.

    About references on ASP.NET knowledge and help on our products, you can follow these materials:

    Regards,
    Ianko
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top