Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Browse through multiple numbered HTML files

Status
Not open for further replies.

SEncP

Technical User
Feb 11, 2003
1
NL
I’m working on a website with a lot of pages. All pages are numbered files, but not all numbers exist. Example: 0002.html, 0017.html, 0021.html, etc.

I want to offer the user Previous and Next buttons in one frame and show the contents of the numbered files in another frame. Instead of defining the previous and next filenames in all files I think I need a VBscript (I can’t use Perl).

How do I fill an array with all filenames in a path on the web?
How do I define the current file that’s loaded in a frame?
How do I create the buttons that let you browse through all pages?
Am I doing the right thing? I am a beginner in VisualBasic and unexperienced with VBscripting.

Regards,
Ben
 
You could use the file system object to populate an array with the html files in a directory. A good link to get you started is:


Not sure how to get the current file in a frame using VBscript, I would use the servervariables collection in ASP, but it may not be an option for you to use ASP.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top