Link to home
Start Free TrialLog in
Avatar of BossTurbo
BossTurbo

asked on

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

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.
<HTML>
  <HEAD>
    <SCRIPT type="text/javascript" SRC=C:\_PhotosViewing\language-en.js></SCRIPT>
    <SCRIPT type="text/javascript" SRC="C:\_PhotosViewing\nopcart.js"></SCRIPT>
  </HEAD>
  <BODY BGCOLOR=#444444 LINK=WHITE ALINK=RED VLINK=WHITE TOPMARGIN=4 LEFTMARGIN=4>
[...]
        <script>
          MiniManageCart();
        </script>
[...]
  </BODY>
</HTML>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of David S.
David S.
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Add the type attribute to your script tag:

 <script type='text/javascript'>
Avatar of BossTurbo
BossTurbo

ASKER

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