This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Etsi tuesta

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Lue lisää

Including external Javascript file in JSP- not working on Mozilla Firefox

  • 2 vastausta
  • 1 henkilöllä on sama ongelma
  • 5 näyttöä
  • Viimeisin kirjoittaja the-edmeister

more options

I have a JSP page which includes javascript file as below:

<script type="text/javascript" src="https://siteAddress/scripts/myJsFile.js"></script>

myJsFile.js has a method testFireFox()

There is a link on JSP which that calls this method.

 <a href="#" onClick="testFireFox()">Some Text...</a> 

As soon as i click on the link, nothing happens and this error appears on console:

Refrence Error: testFirefox() is not definedI tried giving the path for JS file in various ways but it did not help.

Note: This works absolutely fine in Internet Explorer.

I have not added Javascript to document.ready or onLoad event. It is simply been referred in <Head>

tag any pointers pls..
I have a JSP page which includes javascript file as below: <script type="text/javascript" src="https://siteAddress/scripts/myJsFile.js"></script> myJsFile.js has a method testFireFox() There is a link on JSP which that calls this method. <a href="#" onClick="testFireFox()">Some Text...</a> As soon as i click on the link, nothing happens and this error appears on console: Refrence Error: testFirefox() is not definedI tried giving the path for JS file in various ways but it did not help. Note: This works absolutely fine in Internet Explorer. I have not added Javascript to document.ready or onLoad event. It is simply been referred in <Head> tag any pointers pls..

Kaikki vastaukset (2)

more options

I'am using FireFox 31.0

more options

This forum is intended for user support, not for web development issues. Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The contributors over there are more knowledgeable about web page development issues with Firefox. http://forums.mozillazine.org/viewforum.php?f=25 You'll need to register and login to be able to post in that forum.