/ Forside / Teknologi / Udvikling / HTML / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
HTML
#NavnPoint
molokyle 11184
Klaudi 5506
bentjuul 3377
severino 2040
smorch 1950
strarup 1525
natmaden 1396
scootergr.. 1320
e.c 1150
10  miritdk 1110
a frame with a windows explorer folder loo~
Fra : Markus Flach


Dato : 25-07-04 19:38

i wanna have a frame on my page and in that frame is just the folder
struktur from a server from our olcal network.
how can i do that?

regards
markus



 
 
Erik Ginnerskov (25-07-2004)
Kommentar
Fra : Erik Ginnerskov


Dato : 25-07-04 20:16

Markus Flach wrote:
> i wanna have a frame on my page and in that frame is just the folder
> struktur from a server from our olcal network.
> how can i do that?

If your server alowes directory listing, just link to the directory and make
sure there is no default [1] web page in that folder.

If your server doesn't alowe so, you cann't do anything.

[1] default.*, index.* home.* or what ever your server may be set to
display, when no specified file is required in the link.

--
Yours
Erik Ginnerskov
http://hjemmesideskolen.dk - http://html-faq.dk
http://hjem.get2net.dk/egin



Erik Ginnerskov (25-07-2004)
Kommentar
Fra : Erik Ginnerskov


Dato : 25-07-04 22:48

Erik Ginnerskov wrote:
> Markus Flach wrote:
>> i wanna have a frame on my page and in that frame is just the folder
>> struktur from a server from our olcal network.
>> how can i do that?
>
> If your server alowes directory listing, just link to the directory
> and make sure there is no default [1] web page in that folder.
>
> If your server doesn't alowe so, you cann't do anything.

Correction, stupid me.

Place an asp-file with the following body content in the catalog:

<% session.LCID = 1030 %>
<%
dim strPathInfo, strPhysicalPath
strPathInfo = Request.ServerVariables("PATH_INFO")
strStiInfo = Request.ServerVariables("server_name")
strPhysicalPath = Server.MapPath(strPathInfo)

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

set objFile = objFSO.GetFile(strPhysicalPath)

set objFolder = objFile.ParentFolder

set objFolderContents = objFolder.Files
%>

<h1>
<%
streng= Request.ServerVariables("PATH_INFO")
sidsteslash = InStrRev(streng, "/")
stien = Left(streng, sidsteslash)
Response.write Request.Servervariables("Server_Name") & stien
%>

--
Yours
Erik Ginnerskov
http://hjemmesideskolen.dk - http://html-faq.dk
http://hjem.get2net.dk/egin




Søg
Reklame
Statistik
Spørgsmål : 177502
Tips : 31968
Nyheder : 719565
Indlæg : 6408537
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste