Calling JS from JSP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lizzy

    Calling JS from JSP

    I am having problems calling progressbar.js from my jsp. I am using
    the following call:
    <script language="javas cript" 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?
  • Klaus Johannes Rusch

    #2
    Re: Calling JS from JSP

    Lizzy wrote:
    [color=blue]
    > I am having problems calling progressbar.js from my jsp. I am using
    > the following call:
    > <script language="javas cript" 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 ();[/color]

    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) ?

    --
    Klaus Johannes Rusch
    KlausRusch@atme dia.net



    Comment

    Working...