Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 27th, 2004, 07:26 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Giving virtual directory own look and feel

Hello,

I'm having several virtual directory's which i want to give my websites look and feel. Can anybody help me to get started with this

Thanx in advance
 
Old December 27th, 2004, 03:56 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

What exactly are you looking for? A site design, aka a template?

I suggest getting Dreamweaver MX or FrontPage (they have many preloaded templates), or perhaps downloading a free CMS like PostNuke and grabbing a good theme.

-Snib - http://www.snibworks.com
Where will you be in 100 years?
 
Old December 27th, 2004, 08:19 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have this code
Code:
<HTML>
<HEAD>
<TITLE>AM Signalen</TITLE>
</HEAD>
<BODY>
 

<%
  Dim strPathInfo, strPhysicalPath
  strPathInfo = Request.ServerVariables("PATH_INFO")
  strPhysicalPath = Server.MapPath(strPathInfo)

  Dim objFSO, objFile, objFileItem, objFolder, objFolderContents
  Set objFSO = CreateObject("Scripting.FileSystemObject")

  Set objFile = objFSO.GetFile(strPhysicalPath)
  Set objFolder = objFile.ParentFolder
  Set objFolderContents = objFolder.Files
%>

<TABLE cellpadding=5>
<TR align=center>
  <TH align=left>File Name</TH>
  <TH>Type</TH>
  <TH>File Size</TH>
  <TH>Last Modified</TH>
</TR>

<%
  For Each objFileItem in objFolderContents
%>

    <TR>
      <TD align=left>
      <A HREF="<%= objFileItem.Name %>">
      <%= objFileItem.Name %>
      </A>
      </TD>
      <TD align=right>
      <%= objFileItem.type %>
      </TD>
      <TD align=right>
      <%= objFileItem.size %>
      </TD>
      <TD align=right>
      <%= objFileItem.DateLastModified %>
      </TD>
    </TR>

<%
  Next
%>

</TABLE>
</BODY>
</HTML>
but it only show files in the directory where this asp file resides. I need to rewrite this code so i can specify a directory to list, for example http://www.mixz.local/amsignals






Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Directory MeenaG BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 December 2nd, 2006 01:48 PM
creating new virtual directory red_fiesta Classic ASP Basics 0 October 26th, 2006 04:29 AM
Virtual Directory kristina BOOK: Beginning ASP 3.0 1 April 22nd, 2005 09:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.