Problem on function setHTML (Javascript object)

Last post 10-17-2007, 1:07 AM by nddieu. 3 replies.
Sort Posts: Previous Next
  •  10-16-2007, 10:07 AM 34325

    Problem on function setHTML (Javascript object)

    i'm using the Cute Editor 6.0
    This is my Code
    -----------------------------------------------------
    <ce:editor id="EditNoiDung" runat="server" allowpastehtml="true" autoconfigure="Full_noform"

    breakelement="Br" TemplateItemList="Save,ForeColor,Bold,Italic,Underline,JustifyLeft,JustifyCenter,JustifyRight,InsertUnorderedList,Separator,Indent, Outdent, insertcustombutonhere,ImageGalleryByBrowsing,table"

    disableautoformatting="True" enablestripscripttags="false" enabletheming="False"

    enableviewstate="False" height="352px" removeservernamesfromurl="False" removetbodytag="true" securitypolicyfile="NewIdeas.config"

    showpreviewmode="False" width="465px">

    <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"

    CssClass="CuteEditorFrame" Height="100%" Width="100%" />

    </ce:editor>

    <script type="text/javascript">
    EditorData = document.getElementById(
    '<%=EditNoiDung.ClientID%>');
    EditorData.setHTML("Thu Nghiem");
    </script>
     
      -----------------------------------------------------
     
     
    On IE6.0,It sometimes has problem, i can see the text "Thu Nghiem" on editor but i can't focus into editor for changing this text.
     
    Please tell me how to repair it.
     
     
    Thank you so much.
  •  10-16-2007, 11:08 PM 34353 in reply to 34325

    Re: Problem on function setHTML (Javascript object)

     
    Using Editor1.AddInitializeScriptCode method. Please check the source code of the above example.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-16-2007, 11:52 PM 34355 in reply to 34353

    Re: Problem on function setHTML (Javascript object)

    On example page is not problem, but on my page i'm using DIV, and set on style visibility of DIV tag  "hidden" and "" (none)
    (Some time is problem, some time is OK)
     
    <div id="aaa" style="position: absolute; background-color:White; border:solid 1px #124F97; z-index:1000 ; left: 17px; top: 178px;visibility:hidden">
    <ce:editor id="EditNoiDung" runat="server" allowpastehtml="true" autoconfigure="Full_noform"
    breakelement="Br" TemplateItemList="Save,ForeColor,Bold,Italic,Underline,JustifyLeft,JustifyCenter,JustifyRight,InsertUnorderedList,Separator,Indent, Outdent, insertcustombutonhere,ImageGalleryByBrowsing,table"

    disableautoformatting="True" enablestripscripttags="false" enabletheming="False"

    enableviewstate="False" height="352px" removeservernamesfromurl="False" removetbodytag="true" securitypolicyfile="NewIdeas.config"

    showpreviewmode="False" width="465px">

    <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"

    CssClass="CuteEditorFrame" Height="100%" Width="100%" />

    </ce:editor>
    </div>

    <script type="text/javascript">
    function Showdata(){
     tempDivlistnews = document.getElementById('aaa');
     tempDivlistnews.style.visibility="";
     EditorData = document.getElementById('<%=EditNoiDung.ClientID%>');
     EditorData.setHTML("Thu Nghiem");
    }

    function HideData(){
     tempDivlistnews = document.getElementById('aaa');
     tempDivlistnews.style.visibility="hidden";
    }
    </script> 

  •  10-17-2007, 1:07 AM 34357 in reply to 34325

    Re: Problem on function setHTML (Javascript object)

    I'm have fix this problem ( Problem on my IE ) 
     
    Thank you so much.
View as RSS news feed in XML