how to using jQuery setHTML & getHTML?

Last post 07-17-2009, 5:24 AM by yzhxhwt. 1 replies.
Sort Posts: Previous Next
  •  07-16-2009, 4:57 AM 54023

    how to using jQuery setHTML & getHTML?

    my project is Extjs+jQuery
    there is cuteEditor in my Page,so,i click my Extjs GridPanel will pop EditWindow ,must be read some data to CuteEditor.
    i try $("#Editor1").setHTML, $("#Editor1").val(data)... it's  invalidation and using var editor1 = document.getElementById('<% = Editor1.ClientID%>');        editor1.PasteHTML("Hello World"); it's invalidation yet.
    it's my problem??
     
    that is my code:
    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" ValidateRequest="fa Inherits="_Default" %>

    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>

    <!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 >
        <title>无标题页</title>
            <script language="javascript" type="text/javascript">
            var editor1 = document.getElementById('<% = Editor1.ClientID%>');
            editor1.PasteHTML("Hello World");
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
                    <CE:Editor ID="Editor1" runat="server" ThemeType="Office2003_BlueTheme">
    <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderWidth="1px" BorderStyle="Solid" CssClass="CuteEditorFrame" Height="100%" Width="100%"></FrameStyle>
            </CE:Editor>

        </div>
        </form>
    </body>
    </html>


  •  07-17-2009, 5:24 AM 54053 in reply to 54023

    Re: how to using jQuery setHTML & getHTML?

    anybody kows?
View as RSS news feed in XML