Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
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.
You got me headed in the right direction. I was actually not concerned so much with the "base.css" stylesheet, but that made me think. Why not put the menu.css in the base.css stylesheet and just reference the whole thing that way. So, that worked fine, and yes, I had the wrong pathway to the file. That's fixed now.
I added the php include to my header.php file. Now it will be referenced across the entire site.
I also had to put the javascript to the menu.js file in the actual index page that I'm calling the function from. That was another biggie.
At least I can see the menu now. The only problem is that it takes "forever" to load.
Thanks for getting me a bit closer to making this thing work.
Glad I atleast gave you a push into the right direction. I also noticed the time it took to load the page. It's much better now, but not nearly as fast as the root-host charlierichjr.com. (Just adding this so you don't think it's something on your end only...)
You should add "time()-checks" on various of places in your code to see what fubars it...