• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javascript is not loaded

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have a js files which is included in jsp file and is also placed in the local jboss static folder

the js file is not being loaded when I deploy the project and when the jsp is loaded in local javascript errors are displayed saying that the functions cannot be defined which are in the javascript file
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This sounds very, very much like your other post: https://coderanch.com/t/556016/HTML-JavaScript/setUpAjaxLoader-not-defined-error.

In which I asked whether the Javascript file containing the undefined functions was being loaded. And in which you said it was.

Now here you have a very, very similar-sounding problem, only in this one the Javascript file isn't being loaded.

Is this a different problem, or the same problem?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The URL is wrong.
 
ramu somu
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:This sounds very, very much like your other post: https://coderanch.com/t/556016/HTML-JavaScript/setUpAjaxLoader-not-defined-error.

In which I asked whether the Javascript file containing the undefined functions was being loaded. And in which you said it was.

Now here you have a very, very similar-sounding problem, only in this one the Javascript file isn't being loaded.

Is this a different problem, or the same problem?




this is a different problem

other js files are being loaded bt dnt know why some of the js files are not loading
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I said, your Url is wrong. Be sure that you are not using page-relative URLs, but server-relative URLs.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic