Click to See Complete Forum and Search --> : Javascript Menu and Tomcat


a.sh1
March 13th, 2006, 03:46 PM
I created a javascript cascading menu using Xara MenuMaker1.1.
The menu worked great until I installed Tomcat. After installing tomcat, the menu does not show at all as if the following line of code is not there. I would appreciate any help.

I use the following code in my .jsp file to call the javascript code to create the menu.

<script src="/InfoExchange/xaramenu.js"></script><script Webstyle4 src="/images/PORTALS/inf.js"></script>

PeejAvery
March 13th, 2006, 06:09 PM
What version of Tomcat? Have you tried running your code off you computer rather than through the server?

Doesn't seem to make much sense seeing as Tomcat is a Java source and not a JavaScript source. Does the Xara software call some Java object?

a.sh1
March 14th, 2006, 03:56 PM
It's Tomcat v. 5.5. When I run the code on my comuter with no Tomcat the menu works fine.
It is really strange, I am thinking maybe Tomcat needs a more specific file path to see the .js files.

PeejAvery
March 14th, 2006, 04:05 PM
It is really strange, I am thinking maybe Tomcat needs a more specific file path to see the .js files.
Well, Tomcat is just an addition to a webserver that runs on Apache. As long as your server paths are correct, there should be no issue. Have you even tried script debugging?

If you are using IE, set it to display a message on all errors. If you are using Firefox, clear the JavaScript console and then reload the page.