Welcome Guest Search | Active Topics | Sign In | Register

Create dynamic HTML Editor into Dialog make crash IE7 Options
Samuele
Posted: Sunday, September 14, 2008 2:41:42 AM
Rank: Advanced Member
Groups: Member

Joined: 5/31/2007
Posts: 58
Hi,

i need to create a Html Editors into a dialog dynamically..
I've try the follow code but it crash IE7

Code: HTML/ASPX
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="private_Test" %>

<%@ Register Src="../Controls/TraductionInputs.ascx" TagName="TraductionInputs" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Pagina senza titolo</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <eo:Dialog ID="TradDialog" runat="server" BackColor="White" CloseButtonUrl="00020312"
                ControlSkinID="None" HeaderHtml="Test" Height="100px" InitialState="Visible" Width="300px">
                <HeaderStyleActive CssText="background-image:url('00020311');color:black;font-family:'trebuchet ms';font-size:10pt;font-weight:bold;padding-bottom:5px;padding-left:8px;padding-right:3px;padding-top:0px;" />
                <ContentStyleActive CssText="padding-right: 4px; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; padding-top: 4px; font-family: tahoma" />
                <ContentTemplate>
                    <asp:Table ID="TblInputs" runat="server" CellPadding="1" CellSpacing="1" EnableViewState="False">
                    </asp:Table>
                </ContentTemplate>
                <FooterStyleActive CssText="padding-right: 4px; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; padding-top: 4px; font-family: tahoma" />
                <BorderImages TopRightCornerBottom="00020308" TopRightCorner="00020309" TopLeftCornerBottom="00020302"
                    TopLeftCorner="00020301" TopBorder="00020310" RightBorder="00020307" LeftBorder="00020303"
                    BottomRightCorner="00020306" BottomLeftCorner="00020304" BottomBorder="00020305" />
            </eo:Dialog>
        </div>
    </form>
</body>
</html>


Code: Visual Basic.NET
Partial Class private_Test
    Inherits System.Web.UI.Page

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

    Private Function CreateEOEditor(ByVal Code As String) As EO.Web.Editor
        Dim Editor As EO.Web.Editor = New EO.Web.Editor()
        Editor.ID = "INPUT_" & Code
        Editor.Height = Unit.Parse(300)
        Editor.Width = Unit.Parse(300)
        Editor.ToolBarItems = "Bold,Italic,Underline,,AlignLeft,AlignCenter,AlignRight,AlignJustify,,BulletList,NumberedList,,InsertOrEditLink,RemoveLink"

        Return Editor
    End Function

    Private Function CreateTableRow(ByVal Code As String) As TableRow
        Dim Cell As TableCell = New TableCell
        Cell = New TableCell
        Cell.Controls.Add(Me.CreateEOEditor(Code))

        Dim Row As TableRow = New TableRow
        Row.Cells.Add(Cell)
        Return Row
    End Function

    Private Sub DrawInputs()
        ' Inputs
        Dim Tabs() As String = {"1", "2"}
        Me.TblInputs.Controls.Clear()

        For Each Tab As String In Tabs
            ' Table
            Dim NewRow As TableRow = Me.CreateTableRow(Tab)
            Me.TblInputs.Rows.Add(NewRow)
        Next
    End Sub

End Class


Thanks
Paroca
eo_support
Posted: Sunday, September 14, 2008 7:27:01 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,090
Hi,

Thank you very much for the test code. The problem is obviously an IE bug but we have worked around the problem. Please expect a new build shortly.

Thanks!
eo_support
Posted: Tuesday, September 23, 2008 7:45:59 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,090
Hi,

This issue is addressed in the build 2008.0.34. You can download it from our download page.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.