Announcement

Collapse
No announcement yet.

[ASP] Simple Document Library

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [ASP] Simple Document Library

    Please post any enhancements or comments on this here

    The ASP is here
    http://ubb.homeseer.com/6/ubb.x?a=tp...3&m=5636012135

    Kevin

    #2
    Package would not download from script library...

    Dennis
    Not too old to learn

    Comment


      #3
      Just Tried it, works ok

      Try
      Right click
      Save as
      Library.asp

      Kevin

      Comment


        #4
        I was able to get the file by dbl-clicking and then doing a view \ source

        This is a good script idea to provide quick access to documents. I know I want a one-click access to documentation. When this asp is added to the links bar then the mission is accomplished.

        If you want to traverse lower level folders within \library then the File System Object Subfolders will do the job for you. You will want to split your current "folder" processing section into a separate subroutine then call it from something like the following. Not checked-out, but it will give you the idea. Note that the name objFolder is used in the main procedure and as a input parameter to the DoAFolder subroutine that I'm illustrating. While the same name, they are actually different objects. You may want to change this so you will not confuse yourself in the future.


        <pre class="ip-ubbcode-code-pre">
        'Do the \Library folder
        DoAFolder objFolder

        'Do all the subfolders
        For each objSubFolder in objFolder.SubFolders
        DoAFolder objSubFolder
        Next

        </pre>
        sub DoAFolder (objFolder)
        Set filecollection = objFolder.Files
        'create the links
        fno=1
        For Each filename in filecollection

        :
        :

        strThisUrlPath = replace(filename.path,hs.GetAppPath & "\HTML","",1,-1,vbTextCompare)

        Comment


          #5
          This works fine!

          I use a similar type of script to view any received fax msg. My faxserver stores received faxes to disk in a directory within the Homeseer webserver html directory. Then an .asp page finds theses files, shows the filenames and filecreationdates. A doubleclick on the filename shows the contents.

          That should be possible with this script as well I guess.

          Cheers, Henk.

          Comment


            #6
            Must of had an Internet problem. It worked fine for me as well when I tried it again later. Sorry for being too quick with the negative post.

            Dennis
            Not too old to learn

            Comment


              #7
              Kevin,

              Just tried it and works great!

              One thing I would suggest is to put a check for guest/authorized usage for those who allow guest access to their site.

              Well done!

              Jon

              www.jon00.me.uk/hs.html
              Jon

              Comment


                #8
                Thanks Jon00

                I have updated the attachment

                Kevin

                Comment


                  #9
                  My Library Page
                  Attached Files

                  Comment


                    #10
                    Great Page Kevin! This is going to be very handy!

                    Cheers
                    Al

                    http://www.sparkman.dns2go.com/
                    HS 4.2.8.0: 2134 Devices 1252 Events
                    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                    Comment


                      #11
                      Kev_t

                      I'm getting the following error when I try to run library.asp. I'm stuck ...I'm not a programmer and have no idea what the error code is telling me. Any help would be appreciated. thanks

                      Script Error:
                      1032:Invalid character in line 124

                      Dennis
                      Not too old to learn

                      Comment


                        #12
                        I am no programmer either
                        But I am puzzled because line 124 is a blank line immediately above &lt;!--#include virtual="/includes/footer.asp"--&gt;

                        ie
                        response.write "&lt;/body&gt;"
                        response.write "&lt;/html&gt;"
                        %&gt;

                        &lt;!--#include virtual="/includes/footer.asp"--&gt;

                        unless you have added anything to the ASP?

                        Kevin

                        [This message was edited by kev_t on Tue, 13 January 2004 at 06:29 PM.]

                        Comment


                          #13
                          I've added nothing to the asp file. Only thing I've done is create the Library.ini and put it in the /config sub directory and put the documents in /html/Library.

                          I've download the zip file from the twice with the same result. I doubt there is corruption but could you email the zip file and I'll clean everything out tonight an trying again.

                          Thanks

                          Dennis

                          dlgardne@NO_SPAM_comcast.net

                          Dennis
                          Not too old to learn

                          Comment


                            #14
                            Not sure if this is it but please check you have no blank lines in youe ini file

                            Need some more error checking!

                            Kevin

                            Comment


                              #15
                              Could you post a sample ini file to see if we are creating it correctly?

                              I am also having the same error.

                              Thanks

                              Comment

                              Working...
                              X