problem with accessing a JS file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leenadiwan
    New Member
    • Jan 2007
    • 22

    problem with accessing a JS file

    Friends,
    Im having problem with accessing a JS file placed in another folder from a JSP popup.

    I tried all the following:
    <SCRIPT LANGUAGE="JavaS cript1.1"
    SRC="../js/SpellCheckForm. js"></SCRIPT>

    <SCRIPT LANGUAGE="JavaS cript1.1"
    SRC="/js/SpellCheckForm. js"></SCRIPT>

    <SCRIPT LANGUAGE="JavaS cript1.1"
    SRC="<%=request .getContextPath ()%>/js/SpellCheckForm. js"></SCRIPT>

    No options worked.

    I am accessing files this way in other JSP files.

    Not sure what can be the issue in one particular case?? Any pointers to debug?

    the folder structure is as follows:
    -webContent
    ----JSP
    ----JS

    Regards,
    Leena
  • mgast
    New Member
    • Sep 2006
    • 9

    #2
    Try

    Code:
    <SCRIPT LANGUAGE="JavaScript1.1" SRC="js/SpellCheckForm.js"></SCRIPT>

    Comment

    Working...