Re: retrieving current file name through asp or javascript?

by "Rossi Designs" <webmaster(at)rossidesigns.net>

 Date:  Wed, 17 May 2000 14:15:20 -0400
 To:  <pbabcock(at)bgsgroup.com>,
<hwg-languages(at)hwg.org>
 References:  felix
  todo: View Thread, Original
I think in ASP it's

<% = Request.ServerVariables("SCRIPT_NAME") %>

in js

Location.pathname

then split it with / and take the last part.

Rossi Designs
PO Box 1084
Holly Hill, FL 32125-1084
Phone : (904) 226-8979
URL : http://rossidesigns.net
----- Original Message -----
From: Phil Babcock <pbabcock(at)bgsgroup.com>
To: <hwg-languages(at)hwg.org>
Sent: Wednesday, May 17, 2000 12:55 PM
Subject: retrieving current file name through asp or javascript?


| Hi all
|
| Anyone know of a way, through either ASP (vbscript) or javascript to
return
| the file name of the current document?  I dont need the path or attributes
| or anything else, just the file name.  I would prefer a server-side
| vbscript, but client-side javascript might be ok as well.
|
| I looked through the ASP Scripting.FileSystemObject but it only seems to
be
| applicable if you can specify the file you are interested in.  I need
| something more dynamic, that will return the file name without any
| pre-knowledge of the name.
|
| Make sense?
|
| tia,
|
| Phil Babcock
| Lead Web Designer
| BGS Group Inc.
|
|
|

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA