navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

File Display in a Folder

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> File Display in a Folder
Page: [1]
 
steveg

 

Posts: 278
Joined: 10/20/2004
Status: offline

 
File Display in a Folder - 3/18/2005 7:53:28   
I would like to display the files in a folder but don't know how or if it is possible with FrontPage.

I have a number of clients and they have a series of reports. I would like to let them look at the folder for monthly reports and to be able to see the file names and just select to download. Otherwise I have to build a menu that needs changing when we upload new files. The files already have month and year info in their title so they would be easy for the customer to recognise.

Is this possible?

Thanks

Steve
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: File Display in a Folder - 3/18/2005 9:43:15   
There are a lot of scripts for download managers. This link takes you to page one of a pile of them. This is the PHP list but if you don't have PHP on your host, you'll need to look in the ASP section.



_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to steveg)
steveg

 

Posts: 278
Joined: 10/20/2004
Status: offline

 
RE: File Display in a Folder - 3/23/2005 9:00:40   
Maybe I'm reading them wrong but they all seem to have a lot more in them than I need. I just want a person to see their folder, see the listed files and download them. I have .asp and only looked at the .asp ones, but they appear to be complete folder management utilities.

Am I just not understanding?

Steve

(in reply to jaybee)
CelticDragon

 

Posts: 227
Joined: 11/14/2003
From: Dublin, Ireland
Status: offline

 
RE: File Display in a Folder - 3/23/2005 10:43:09   
This wouldn't be as simple and basic as just not having an index file in the folder would it?

If you don't have an index and link to just the folder then it just lists everything in the folder.

It doesn't look pretty but it could be a fix

_____________________________

I Lost My Stuff - If you lost it, someone found it!

(in reply to steveg)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: File Display in a Folder - 3/23/2005 11:13:21   
I have a sample of the code I use here:

http://www.clarkinsurance.com/directory_browser_code.htm

There is some JavaScript on the page and a reference to a few images that you won't get, but the concept is quite straightforward. I use this page to list documents that primarily are scanned into Adobe Acrobat. However some Word files and Excel SS's are put there as well.

Put all this code onto an ASP page and save it to any directory. Browse to the page and it will list all files with the extensions listed in this line along with the creation (scan) dates.

<% If (strExt="PDF") or (strExt="DOC") or (strExt="XLS") or (strExt="HTM") then %>

See, with this example I display PDF,DOC,XLS, or HTM files but you can change it to fit your situation. The only problem with this code is that any filename that contains an apostrophe will not open. The file will be listed but the link to it will not function.

Hope it helps.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to CelticDragon)
steveg

 

Posts: 278
Joined: 10/20/2004
Status: offline

 
RE: File Display in a Folder - 3/23/2005 13:01:49   
Tried the code and it looks pretty good. I have made a number of cosmetic changes and they all work fine. I would like to get the links, when selected, to come up in the same window but can't see it in the code as yet. Also, I would like to change the font of the displayed links, can't quite see where to do that.

Otherwise, it seems to be just what I need!!!:)

(in reply to steveg)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: File Display in a Folder - 3/23/2005 13:28:29   
This line here:

<a href="javascript:winopen('<%=strFile%>')">

uses a JavaScript to open a new window. Just changing it to this should work:

<a href="<%=strFile%>">

Hope it helps.

EDIT: In that same area is where I change font sizes and stuff; I also use a style for my links:

<style>
<!--
A:link {text-decoration: none; color: blue}
A:visited {text-decoration: none; color: blue}
A:hover { text-decoration: none; color: #ff0000 }
//-->
</style>

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to steveg)
Page:   [1]

All Forums >> Web Development >> General Web Development >> File Display in a Folder
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts