[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


calling an external javascript function "is not defined" in firefox

Posted on 2008-06-12
Medium Priority
Last Modified: 2012-05-05
When calling the function MiniManageCart() which is in my nopcart.js file, I get an error in Firefox error console that says MiniManageCart is not defined.  This same code works fine in IE 7... any ideas?

Below is my edited html to show the relevant parts.
    <SCRIPT type="text/javascript" SRC=C:\_PhotosViewing\language-en.js></SCRIPT>
    <SCRIPT type="text/javascript" SRC="C:\_PhotosViewing\nopcart.js"></SCRIPT>

Open in new window

Question by:BossTurbo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 43

Accepted Solution

David S. earned 2000 total points
ID: 21775088
Try the following.

P.S. You're using obsolete attributes on <body> there.
    <script type="text/javascript" src="file:///C:/_PhotosViewing/language-en.js"></script>
    <script type="text/javascript" src="file:///C:/_PhotosViewing/nopcart.js"></script>

Open in new window

LVL 41

Expert Comment

ID: 21775090
Add the type attribute to your script tag:

 <script type='text/javascript'>

Author Closing Comment

ID: 31466792
Thanks!  I knew it was something easy, but sometimes you get tunnel vision.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question