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

JavaScript exception: _event does not exist

3 Answers 49 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Heinrich
Top achievements
Rank 1
Heinrich asked on 19 Dec 2013, 10:58 AM
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!

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 21 Dec 2013, 01:09 PM
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.
0
Heinrich
Top achievements
Rank 1
answered on 24 Dec 2013, 08:40 AM
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! :-)
0
Ianko
Telerik team
answered on 24 Dec 2013, 01:07 PM
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.
Tags
Editor
Asked by
Heinrich
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Heinrich
Top achievements
Rank 1
Share this question
or