Display Menu From Perl Script in a Virtual Directory

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
The_Paul
Beginner
Beginner
Posts: 2
Joined: Thu Sep 11, 2003 8:24 pm

Display Menu From Perl Script in a Virtual Directory

Post by The_Paul »

I would like to display the Menu on a number of pages generated by a Perl Script. Normally this would be no problem as I could just use the normal method of including .js files.

My problem is that Perl scripts on my server are placed in a virtual directory rather than in wwwroot with the rest of my web documents. The actual location of the menu files is of course under wwwroot.

I have had no luck in finding a way to include the .js menu files that reside under the wwwroot into my perl pages that are located outside of wwwroot.

Does anyone know of a way to include javascript files that reside outside of a virtual directory?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Don't think it's possible, unless you know how to configure your web server to do so.

The menu is normally called with the http protocol and your web server won't allow you to view files in a directory lower than wwwroot.

There may be a way to configure you web browser but I dont know how.

However, I can't see the reason for doing this as the menu is client side and is only delivered to a web browser as a text file. So in reality the file can be called from anywhere within the wwwroot tree

Hope this helps
Andy
The_Paul
Beginner
Beginner
Posts: 2
Joined: Thu Sep 11, 2003 8:24 pm

Post by The_Paul »

Thanks for the reply Andy. I may just place a copy of the menu javascript files in the virtual directory and see if I can use that as a work around.
Post Reply