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

Javascript error: Unknown Runtime Error

2 Answers 61 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gary Davis
Top achievements
Rank 2
Gary Davis asked on 20 Jun 2008, 09:29 PM
I get this Unknown Runtime Error at this statement:

   updatePanelElement.innerHTML = rendering;

within MicrosoftAjaxWebForms.js (ScriptResource.axd) when I try to save content entered into the editor box. One posting I found on Google pointed to this error occurring due to a form tag within the content (which is true in my case - I am saving an entire htm file).

The actual save does work and the javascript error occurs after and the yellow error icon shows up on the bottom left of the IE7 window.

Is there some setting I need to set to allow any content within the editor box?

Thanks,
Gary Davis

2 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 23 Jun 2008, 12:56 PM
Hello Gary,

As you point out - this content does work correctly when it is fed to the editor. The editor is also able to save it correctly. So, at all editing steps the editor is able to function correctly and to behave as expected.

Your problem comes when you take the saved content, and want to somehow use it further (the editor is not involved anymore with these operations). You would get the same erro regardless of whether the content was created with RadEditor or by some other means. It is the content itself that is the problem. As you correctly found searching google - there would be a javascript error thrown when you try to create a FORM whithin a FORM. This seems to be exactly what you are trying to do - as your updatePanel on the client is within the master FORM element - and you are assigning one more child FORM into it.

To have this solved, you will need to rework your logic on what  and how you assign content.

All the best,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gary Davis
Top achievements
Rank 2
answered on 23 Jun 2008, 01:48 PM
Yes, I agree. I have the RadEditor control wrapped in an UpdatePanel and when the RadEditor is being refreshed within that panel, the error occurs.

I could remove the updatePanel or maybe change <form> to <!--form --> for display and back for save to the DB.

Thanks,
Gary Davis
Tags
Editor
Asked by
Gary Davis
Top achievements
Rank 2
Answers by
Tervel
Telerik team
Gary Davis
Top achievements
Rank 2
Share this question
or