OnLoad zoom problem

  •  06-20-2007, 7:59 AM

    OnLoad zoom problem

    I have used the code in this thread : 

     http://cutesoft.net/forums/thread/22371.aspx

     But as you guess, it didn't work for me. When the page loads, i get a JavaScript error that says: "Editor1 undefined"

     Here is my code:
    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->
    <html> 
        <head>
      <link rel="stylesheet" href="asp.css"  type="text/css" />
     </head>
        <body onload="_Format(Editor1,'zoom',false,'66%');">
      
      <form name="theForm" action="Get_HtmlContent.asp" method="post" ID="Form1">
         
      <h1>Enable All Toolbarsz</h1>
      <hr>
      <p>This example shows you all the predefined buttons. </p>
      <br />
      <%
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "Editor1"
       editor.Text = "Type Here"
       editor.FilesPath = "CuteEditor_Files"
       editor.EditorBodyStyle = "font:normal 12px arial;"
       editor.EditorWysiwygModeCss = "asp.css"
       editor.Draw()
                
       ' Request.Form(ID) access from other page
      %>
          
      </form>
     </body>
    </html>
    Filed under:
View Complete Thread