Click to See Complete Forum and Search --> : Tree menu script needed
Motabobo
05-23-2003, 06:52 AM
Hi !
I need badly a tree menu script based upon the contents of my website root folder.
There is a couple of scripts out there but none seems to work with Netscape. Also, since all those scripts uses a loop to write the javascript, none of them uses the standard <ul><li> tags.
I wonder if it is possible to use those standard tags ?
Also, i know it is possible to make script that doesn't require me to set up permissions on my browsing folders (so i can move the script easily).
Well, i don't mind not using those tags as long as i find a script that works in both IE and NN6+
Thanks a lot !
Motabobo
05-26-2003, 06:27 PM
No one can help or provide a link ???? :(
cmelnick
05-27-2003, 10:28 AM
Hey...
Not sure if this is what you are looking for, but a little while ago, I wrote a script that I can use for uploading/publishing to my web site over HTTP, so I don't have to always deal with FTP'ing to my ISP.
It is basically a script that starts in your root web directory, lists folders and files. Allows you to upload and download files, and create new directories. You can open folders, and see the subfolders, etc. Not exactly a tree, because you can't see the whole thing at once, just whichever specific directory you are currently in.
I can send it/post it if it sounds like something that would work for you. You would have to tweak it a bit, but I think it would be pretty easy for you to use.
Just let me know...
Chris
Motabobo
05-27-2003, 12:31 PM
That would be great :-D
Could u please post or e-mail it ?
Thanks
cmelnick
05-27-2003, 02:06 PM
There are a couple files you need:
You should make a folder off your web root called "inc", or change the #include paths to your own directory.
browser.asp : place this in your root directory
upload.asp : place in root/inc folder
menu.js : place in root/inc folder
rename.js : place in root/inc folder
You will have to edit browser.asp and download.asp to make baseFldr = your web root. This is the actual physical directory on the web server. For example baseFldr = "C:\Inetpub". Leave off the "\" at the end, so no "C:\Inetpub\". Not sure if it will cause problems, but I know that without works just fine.
There might be other tweaks that you have to do to get it to work right. Let me know if it doesn't work AND you can't figure the problem out...
Once you have it loaded and working, here's what you can do with it.
A left-click on a folder browses to it. A left-click on a file attempts to open it in a new browser window. Right-clicking on folders or files brings up a menu for further options (delete, rename, download).
Enjoy,
Chris
Motabobo
05-27-2003, 02:48 PM
Thank you very much !
Your script looks like it works but i always get a permission denied on every action i try to make (delete, create folder, etc...)
I am computer administrator damn it :rolleyes:
The problem is that i don't know what causes this plus my pages will be hosted on a free server so that error will happen all the time !
Could you do me a BIG favor and take a look at a script located at planetsourcecode ???
The scrip is here :
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=7566&lngWId=4
It gives me the same error, that's why i wrote a help request here :(
Or that one here seems damn simple but it won't work :(
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=6331&lngWId=4
This one works !!! but only for 5 levels deep :(
http://www.web-sn.com/scrpts/tree/
cmelnick
05-28-2003, 09:54 AM
Unfortunately, if "they" (your web space provider) don't have the permissions set up correctly on their web server, then you will be unable to use ASP to have control over your web directories. There's not much you can do about it, unless they allow you to have control over permissions. My provider is a Windows IIS server. While Windows doens't have real good inherent read, write settings itself, you can control that through IIS, and my provider allows me to do that. There are certain directories that I do not allow read access, and those directories do not work with my script.
I might still be able to help, but I need to know more about what you you need. Just to view the contents of your web directory, or to actually upload pages and all that stuff?
Let me know!
Chris
Motabobo
05-28-2003, 10:44 AM
Hmmm !
Well, is your host provider free ? If so, gimme da link LOL
What i can say is that i installed IIS with all default options on a windowsxp. I installed your script as you said with the browser.asp directly in the root.
Do i have to set up special permissions ???? I didn't do anything about permissions on any folder so everything is still by default !
I am computer administrator too :(
cmelnick
05-28-2003, 02:24 PM
Tell you what...
I run Win 2000 at home. I was going to be setting up IIS in the next couple days anyway, so when I get home tonight, I will set it up, tweak it until I can get my browser script to work, and then let you know what my results are!
Sounds like a fun project!!
I will let you know later tonight...
Chris
P.S. No, my provider is not free unfortunately. I was lucky to sign up with them a while ago when they were having a special pricing deal, and they have a policy that their price never goes up from the point you sign up, so it is pretty cheap for me, but for a new account, it wouldn't be as cheap. http://www.adaptive.net if you are interested in looking.
Motabobo
05-28-2003, 06:23 PM
Thanks for the info :D
If you have time you could try to make the scripts i listed in one of my earlier reply works.
I think the reason why they didn't work it's because of permissions problems.
Keep me informed !!
cmelnick
05-28-2003, 09:08 PM
Don't know what to tell you. I set up IIS, installed my browser script, and it works great. I was only wrong about one part, and that was the path (for me) is c:\inetpub\wwwroot instead of just c:\inetpub
Can't help much more unless I could sit down at your box and look at your setup.
Sorry,
Chris