Error in Compatibility View (IE9)

Last post 04-15-2013, 12:11 PM by Kenneth. 4 replies.
Sort Posts: Previous Next
  •  04-09-2013, 10:47 PM 77191

    Error in Compatibility View (IE9)

    Hello,

     

    I'm adding a button to the editor and trying to get the object editor using:
    _editor var = window.dialogArguments;

     

    In Compatibility View (IE 9) return an object table that does not have the method PasteHTML
    In Normal View, I can get the editor and access method PasteHTML,

    _editor.PasteHTML(oLink);

     

    How I can get the editor in compatibility view?

    Thx!

     
  •  04-10-2013, 11:58 AM 77196 in reply to 77191

    Re: Error in Compatibility View (IE9)

    Hi benick,

     

    I can not reproduce this issue, Can you create an example page which can reproduce this issue and show me the full code? So I can test it on my end.

     

    Or show me your editor page url, so I can try it on your site directly.

     

    [email protected] 

     

    Regards,

     

    Ken 

  •  04-10-2013, 2:31 PM 77200 in reply to 77196

    Re: Error in Compatibility View (IE9)

    Hi ken,

     

    the example is:

     

    WebForm1.aspx

     

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebCuteEditor.WebForm1" %>

    <!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></title>

    <script language="javascript" type="text/javascript">

    function OpenBrowser(button) {

    var editor = CuteEditor_GetEditor(button);

    window.showModalDialog('WebForm2.aspx', editor, "dialogWidth:600px;dialogHeight:400px");

    }

    </script>

    </head>

    <body>

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

    <div id="divEditor" runat="server">

    </div>

    </form>

    </body>

    </html>

     

    WebForm1.aspx.vb

    Public

    Class WebForm1

    Inherits System.Web.UI.Page

    Private _oCEDocumentContent As Global.CuteEditor.Editor

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

    _oCEDocumentContent = New Global.CuteEditor.Editor

    With _oCEDocumentContent

    .Width = New Unit("100%")

    .SetSecurityGalleryPath("/")

    .SetSecurityFilesGalleryPath("/")

    .SetSecurityFlashGalleryPath("/")

    .SetSecurityImageGalleryPath("/")

    .SetSecurityMediaGalleryPath("/")

    .ShowWordCount = False

    .AutoConfigure = CuteEditor.AutoConfigure.Simple

    .DisableItemList = "InsertDocument"

    .Height = New Unit(250)

    .FrameStyle.Height = Unit.Percentage(100)

    Dim ctrl As System.Web.UI.WebControls.WebControl

    ctrl = Me._oCEDocumentContent.CreateCommandButton("MyAttachActivities", "AttachActivities.gif", "New button")

    ctrl.Attributes("onclick") = "OpenBrowser(this);"

    Me._oCEDocumentContent.InsertToolControl(0, "MyAttachActivities", ctrl)

    End With

    Me.divEditor.Controls.Add(Me._oCEDocumentContent)

    End Sub

    End

    Class

     WebForm2.aspx

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm2.aspx.vb" Inherits="WebCuteEditor.WebForm2" %>

    <!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></title>

    <script language="javascript">

    alert(window.dialogArguments); //In compatibility View this is un HTMLTableObject

    </script>

    </head>

    <body>

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

    <div>

    </div>

    </form>

    </body>

    </html>

     

    The error occurs when you select browser mode: Internet Explorer 9 compatibility view and document mode: Internet Explorer 9 standards

     

    Thx!

     

    Filed under:
  •  04-12-2013, 2:14 PM 77223 in reply to 77196

    Re: Error in Compatibility View (IE9)

    Hi Ken,

    Please can you help me with this error

    Thk!

  •  04-15-2013, 12:11 PM 77229 in reply to 77223

    Re: Error in Compatibility View (IE9)

    Hi benick,

     

    Your code works fine for me, below is what I got with your code under IE9. What special steps I should do to reproduce your issue?

     

     

     

    Regards,

     

    Ken 

View as RSS news feed in XML