Problem with simple PHP include and javascript menu
Posted: Sun Jan 16, 2005 10:56 am
I'm having a problem with a simple include file that contains a dropdown menu. The dropdown menu contains javascript.
I'm having the same problem running it both locally on my WAMP server and when I post it to the web.
When I go to the menu.php page it works fine, but when I access the page that contains the include file "index.php" the menu is not working. You can see the list items on the menu, but the javascript or css don't seem to be working. I've tried referencing the .js files and the .css files with absolute and with relative paths. Neither seems to work.
Here's how I'm calling the page menu.php
Here's a URL to the menu file: http://www.charlierichjr.com/orban/2TEST/menu/menu.php
and here's one to the page that is calling it.
http://www.charlierichjr.com/orban/2TEST/
Any help would be greatly appreciated.
I'm having the same problem running it both locally on my WAMP server and when I post it to the web.
When I go to the menu.php page it works fine, but when I access the page that contains the include file "index.php" the menu is not working. You can see the list items on the menu, but the javascript or css don't seem to be working. I've tried referencing the .js files and the .css files with absolute and with relative paths. Neither seems to work.
Here's how I'm calling the page menu.php
Code: Select all
include ("menu/menu.php");and here's one to the page that is calling it.
http://www.charlierichjr.com/orban/2TEST/
Any help would be greatly appreciated.