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

[Solved] Javascript error in IE8

1 Answer 106 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 09 Jun 2009, 09:06 PM
We use the RAD Editor for AJAX, and we are getting a javascript error 'undefined' is null or not an object in IE8.  I have included the supposed location of the error below and some surrounding code, which is coming from ScriptResource.axd.  The script is failing at the line "_71e=_71e.replace(/<body\s*\/>/i,"<body></body>");".  The version of our Telerik.Web.UI.dll is 2008.02.1001.35.  This error doesn't seem to occur in IE7 or in Firefox.  Any clues?  Would a version update take care of this problem?  It doesn't seem to be causing any issues, but is an annoyance for one of our clients.

var _71e; 
if(this.get_enableXhtmlFilter()){ 
try
_71e=this._convertToXhtmlFilter.getHtmlContent(_71b); 
catch(exc){ 
alert("Error while executing filter XHTML - "+exc.toString()); 
}else
_71e=$telerik.getOuterHtml(_71b); 
_71e=_71e.replace(/<body\s*\/>/i,"<body></body>"); 
for(var i=0;i<this._filters.length;i++){ 
var _71d=this._filters[i]; 
if((!_71d.get_isDom())&&(false!=_71d.get_enabled())&&_71d.getHtmlContent){ 
try
_71e=_71d.getHtmlContent(_71e); 
 


1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 10 Jun 2009, 08:42 AM
Hi,

We have made numerous changes to the editor to support the new Internet Explorer 8 browser. Download the current RadControls version (Q1 2009, build number 2009.1.527) and update your project.

Alternatively, you can try adding the following <meta> tag to the <head> section of your page:

<meta http-equiv="X-UA-Compatible" content="IE=7" />

This will force the IE 8 browser to use IE 7 compatibility mode and you will not need to update your project.

Sincerely yours,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Keith
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or