Die Funktionalität dieser Website ist durch Wartungsarbeiten eingeschränkt, die Ihr Erlebnis verbessern sollen. Wenn ein Artikel Ihr Problem nicht löst und Sie eine Frage stellen möchten, können Sie unsere Gemeinschaft über @FirefoxSupport auf Twitter, /r/firefox oder Reddit fragen.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

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

  • 2 Antworten
  • 1 hat dieses Problem
  • 5 Aufrufe
  • Letzte Antwort von 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..

Alle Antworten (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.