telerik

Thread
Home  Community  Forum home  RadControls for ASP.NET  Editor for ASP.NET  Internet Explorer cannot open the Internet Site blah - Operation Aborted

Reply
Lynette Anderson | #
6/2/2006 9:45:06 AM
In the PageLoad event of some of our pages that contain Rad Editors, we change which Config File we are using so that we can sometimes have a stripped down version of the editor on a given page. We noticed that we were getting an error whenever we have the ToolbarMode attribute of the editor set to either 'ShowOnFocus' or 'PageTop' instead of 'Default'.  The error is:

"Internet Explorer cannot open the Internet site http://localhost/example.aspx Operation Aborted"

 Apparently this is a somewhat common error with IE caused by 'interacting with innerHTML and possibly using other JScript functionality', as described towards the middle of this page:

http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs

 In order to reproduce this error, you can put a Rad Editor on an .aspx page, change the Config File in PageLoad to a configuration that has the ToolbarMode to 'ShowOnFocus' or 'PageTop', then whenever there is a postback on the page, just click quickly on the Rad Editor or some other controls before they are completely finished loading and it will give you a popup dialog with the error.

My question is just can we do anything about this besides changing the behavior of ToolbarMode back to 'Default'. It doesn't give the error in Firefox, and we like the idea of being able to use the 'ShowOnFocus' functionality for some of our editors.


Reply
telerik | #
6/5/2006 7:11:06 AM
Hello Lynette,

Indeed, your assumptions are correct.

What we can suggest in this case is to hide the editor in a div with style="display:none" and to show it in the body's onload event. This will ensure that the editor is fully loaded before it is shown on the page.







Have a nice day,
Georgi Tunev
the telerik team


Reply
arindam_chat | #
4/16/2007 1:05:59 AM
Hi

I'm facing the same problem, but your sugession using DIV is not working, do you have any other idea?

I'm using RAD 6.0 version.

Thanks
Arindam



Reply
surfer | #
4/16/2007 1:07:35 AM
The suggestion in the other forum thread did not have code sample. Did you try something similar to that?


....
<body onload="ShowEditor()">

<script language="javascript">

function ShowEditor()
{
    document.getElementById("editorPlaceholder").style.display = "block";
}

</script>

<div id="editorPlaceholder" style="display:none">
    <rade:radeditor ID="Editor1" runat="server" ... />
</div>
....