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

[Solved] Browser Locks Up When Loading Form

3 Answers 105 Views
Editor
This is a migrated thread and some comments may be shown as answers.
William Wittsche
Top achievements
Rank 1
William Wittsche asked on 20 Aug 2009, 07:01 PM

There have been several posts related to this issue for earlier versions of IE but I am using IE8 and still getting this problem.  I have an Editor on an aspx page.  This page is opened in a new window when requested via javascript on the opening page.  After the form has loaded several times successfully the next load will not finish (locks up) and not only is this new window locked up, but the browser that opened the new window is hung and must be closed.  This is a very simple page.  I have debug="false" in the web.config.

Here is my code behind:

Imports
System.Web.HttpResponse

 

Imports

 

System.Web.HttpRequest

 

Imports

 

System.Web.HttpApplicationState

 

Imports

 

System.IO

 

Imports

 

System.Xml

 

Imports

 

System.Data

 

Imports

 

System.Data.OleDb

 

Imports

 

code

 

Imports

 

System.Diagnostics

 

Imports

 

System.Web

 

Partial

 

Class HTMLEditor

 

 

Inherits System.Web.UI.Page

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

Dim OpeningForm As String = "" & Request.QueryString("form")

 

 

Dim Script As String = ""

 

Script =

"function CloseWindow(){ " & vbCrLf

 

Script +=

"window.close(); " & vbCrLf

 

Script +=

"return true; " & vbCrLf

 

Script +=

"} " & vbCrLf

 

Script +=

"function UpdateOpener(){ " & vbCrLf

 

Script +=

"var strValue = $find(""" & "RadEditor1" & """).get_html();" & vbCrLf

 

Script +=

"window.opener.document." & OpeningForm.ToString.Trim & ".Data.value = strValue;" & vbCrLf

 

Script +=

"window.close(); " & vbCrLf

 

Script +=

"return true; " & vbCrLf

 

Script +=

"} " & vbCrLf

 

Script +=

"function GetOpenerContent(){ " & vbCrLf

 

Script +=

" var strValue = window.opener.document." & OpeningForm.ToString.Trim & ".Data.value; " & vbCrLf

 

Script +=

" $find(""" & "RadEditor1" & """).set_html(strValue); " & vbCrLf

 

Script +=

" return true; " & vbCrLf

 

Script +=

"} " & vbCrLf

 

 

If ClientScript.IsClientScriptBlockRegistered(Page.GetType(), "MyScriptTransfer") = False Then

 

ClientScript.RegisterClientScriptBlock(Page.GetType(),

"MyScriptTransfer", Script.ToString, True)

 

 

End If

 

Button4.Attributes.Add(

"onclick", "UpdateOpener();")

 

Button5.Attributes.Add(

"onclick", "CloseWindow();")

 

 

End Sub

 

 

Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload

 

 

'RadEditor1.Content = ""

 

 

End Sub

 

 

 

Protected Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button5.Click

 

 

End Sub

 

 

Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click

 

 

End Sub

 

End

 

Class

 

Here is my html:

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="HTMLEditor.aspx.vb" Inherits="HTMLEditor" Debug="false" %>

 

<%

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head runat="server">

 

 

<title>Preference HTML Editor</title>

 

</

 

head>

 

<

 

body runat="server" id="bodytag">

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" ScriptMode="Release">

 

 

</telerik:RadScriptManager>

 

 

<div>

 

 

 

<asp:Table ID="Table1" runat="server" Width="600">

 

 

<asp:TableRow Width="600">

 

 

<asp:TableCell Width="600" HorizontalAlign="Center" >

 

 

<telerik:RadEditor ID="RadEditor1" Runat="server" OnClientLoad="GetOpenerContent" width="600" >

 

 

<Content>

 

 

</Content>

 

 

</telerik:RadEditor>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow Width="600">

 

 

<asp:TableCell Width="600" HorizontalAlign="Center" >

 

 

<asp:Button ID="Button4" onclick="Button4_Click" runat="server" Text="Save" />&nbsp;

 

 

<asp:Button id="Button5" onclick="Button5_Click" runat="server" text="Cancel" ></asp:Button>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

</asp:Table>

 

 

<asp:TextBox ID="TextBox1" runat="server" visible="false"></asp:TextBox>

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

 


3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 25 Aug 2009, 07:08 PM
If it's just in IE8, have you made sure that you have the absolutely latest build? I know there was a fairly recent update that resolved a lot of issues that came from IE8.
0
William Wittsche
Top achievements
Rank 1
answered on 25 Aug 2009, 08:54 PM
It happens in IE 6, 7, and 8.  We do have the latest release of IE8, but I've tried it on several computers with different versions of IE.
0
Rumen
Telerik team
answered on 26 Aug 2009, 07:50 AM
Hi William,

Actually the suggestion provided by Schlurk was to check the RadControls version in your project's bin folder, because we provided support for IE8 in Q1 2009 SP1 (version 2009.1.402).

However, you wrote in your last message that the problem appears no only in IE8 but also in IE6 and IE7.
Unfortunately, I was not able to reproduce the issue but we plan to release tomorrow Q2 2009 SP2 and my recommendation is to test your scenario with the new hotfix once it becomes available for download. If you still experience the problem after the upgrade, please open a support ticket and send a fully working project that demonstrates the problem. If possible attach also a video demonstrating the problem.

Meanwhile you can test the following live example: Editor in RadWindow.

Sincerely,
Rumen
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
William Wittsche
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
William Wittsche
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or