Re: setHTML is not working in IE6

  •  05-13-2011, 11:32 AM

    Re: setHTML is not working in IE6

    Dear sridharRepala,
     
    I tested the following snippet in ie6.0, it works fine:
     
    <!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->
    <html> 
        <head> 
     </head>
     <body>
      <table cellspacing="0" cellpadding="3" width="800" border="0" class="tbmain">
       <tr>   
        <td valign="top">      
         <% 
           Dim editor
           Set editor = New CuteEditor       
           editor.ID = "Editor1"       
           editor.Width = "760"
           editor.Height = "250"       
           editor.Draw()       
           ' Request.Form(ID) access from other page
         %>      
         <br/><br/>
       <input type="button" value="set HTML" onclick="setHTML()" ID="Button2" />
       <script type="text/javascript" >   
       function setHTML()
       {
        // get the cute editor instance
        var editor1 = document.getElementById('<%=editor.ClientID%>');    
        // Set the editor
        editor1.setHTML("this is a test");
       }
       
      var editor1=document.getElementById("<%=editor.ClientID%>");
      if(editor1.IsReady)CuteEditor_OnInitialized(editor); 
        
      </script>
        </td>    
       </tr>
      </table>
      </form>
     </body>
    </html>
     
    Thank you for asking
View Complete Thread