Forums
This topic is locked
pass vars by url and string strip to fit links
14 Jun 2006 13:55:21 Eddy Jay posted:
Hi all, I'm new here, but i hope you guys can help me outI've had some good experience with DW, but on php. Now i'm working on a company where I'm forced to use ASP, and I am quite enjoying it.
I developed a web based file explorer, with a javascript frame on the left with the folder tree, and mainwindow on the right, to ease up the file download.
Basically, all i do with my script, is to send a folder string via url like this:
www.blablabla.com/xpto/files.asp?folderref=./folder1/folder2
the script just grabs a handle on the folder /xpto/data/folder1/folder2/ and list the files, with links, icons for every file, last mod date, size, and file type.
My problem... I need to do a back button to do a folder up. I'm currently using the javascript:history.back(-1) system, but that's not very reliable since you can browse a different folder in the tree and clicking it goes back to the last folder it was in.
other thing
i have a path string using the string passed by url, and replacing the / by -> and . by home... I'd like to put links in each of the folder names so it'd go directly to those folders
ie. Home -> folder1 -> folder2 -> folder3
the link in folder 2 would resolve /xpto/data/folder1/folder2
Any way to strip the string that way?
Thanks in advance
Cheers
Eddy