Calling JS from JSP

L

Lizzy

I am having problems calling progressbar.js from my jsp. I am using
the following call:
<script language="javascript" src="../progressbar.js"></script>

The progressbar.js is not located in the same directory as the jsp, it
is located in the directory above it, that is why I'm using the "../";
the error that I am getting is "object expected" on line 235 error.

Line 235 has:
progressBarInit();

This is the function inside the progressbar.js file. This is an
internet application, therefore, I have to code this for all versions
of IE and Netscape. However, I'm trying to get this working on IE 6.0
first, then I'll worry about Netscape.

Anyone has any suggestions on what to do?
 
K

Klaus Johannes Rusch

Lizzy said:
I am having problems calling progressbar.js from my jsp. I am using
the following call:
<script language="javascript" src="../progressbar.js"></script>

The progressbar.js is not located in the same directory as the jsp, it
is located in the directory above it, that is why I'm using the "../";
the error that I am getting is "object expected" on line 235 error.

Line 235 has:
progressBarInit();

Either the Javascript file did not load, or it does not contain a function
progressBarInit() -- just asking the obvious, is the function spelled
exactly that way (including capitalization)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,566
Members
47,202
Latest member
misc.

Latest Threads

Top