File Manager Instructions

Last post 09-03-2008, 3:28 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  08-31-2008, 3:12 PM 43398

    File Manager Instructions

    Hello,
     
    I want to set up a file and image manager seperate from the editor with the same functionality. I see the example listed here http://cutesoft.net/asp/use-CuteEditor-as-file-manager.asp but I am wondering where some instructions are to set that up.
     
    Any information would be appreciated.
     
    Thanks!
  •  09-03-2008, 3:28 PM 43525 in reply to 43398

    Re: File Manager Instructions

    jay13,
     
    The source code of this example is included in the download package.
     
    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->
    <html> 
        <head>
     </head>
        <body>
     
         <h1>Use CuteEditor as a file manager</h1>
         <hr />
         <div class="infoBox">This example demonstrates how to use CuteEditor as a file manager.</div>
         <br />
                  <input name="docFld" type="text" id="imageFld" style="width:300px;" />
                  <input name="Change" id="Change" type="button" value="File Manager" onclick="callInsertImage()" />  
          <br />
          <%
           Dim editor
           Set editor = New CuteEditor
           
           editor.ID = "Editor1"
           editor.Text = ""
                       editor.Width="1"
                       editor.Height="1"
                       editor.AutoConfigure="None"
                       editor.ThemeType="OfficeXp"
                       editor.ShowBottomBar=false
           editor.Draw()
                            
           ' Request.Form(ID) access from other page
          %>
           
          <br/><br/>     
       
                    
                            <Script Language="javascript">
                                function callInsertImage() 
                                { 
                               var editor1 = document.getElementById('<%=editor.ClientID%>');
                                        editor1.FocusDocument(); 
                                        var editdoc = editor1.GetDocument(); 
                                        editor1.ExecCommand('new');
                                        editor1.ExecCommand('insertdocument');
                                        InputURL();
                                        document.getElementById("docFld").focus();
                                }   
                               
                                function InputURL()
                                {
                              var editor1 = document.getElementById('<%=editor.ClientID%>');
                                    var editdoc = editor1.GetDocument(); 
                                    var links = editdoc.getElementsByTagName("a");
                                    if(links.length>0&&links[links.length-1].href!="") 
            { document.getElementById("docFld").value = links[links.length-1].href;      
            } 
            else
            {
             setTimeout(InputURL,500);
            }
                                }      
                            </script>
     </body>
    </html>

    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

View as RSS news feed in XML