We help IT Professionals succeed at work.
Get Started

"YAHOO is not defined" error in Firebug while trying to use YUI

Last Modified: 2013-11-19
I get a "YAHOO is not defined" error in Firebug.

I highlighted the most significant. The rest of the page should not be relevant.
Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <link rel="stylesheet" type="text/css" href="css/cssMaster.css" />
      <!-- compliance patch for Microsoft browsers -->
      <!--[if IE]>
                  <link rel="stylesheet" type="text/css" href="css/IE7.css" />
      <!-- compliance patch for Linux -->
      <script type="text/javascript" src="javascript/LinuxTest.js"></script>

<!-- ************************************************************************************* -->      
      <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.1/build/container/assets/container.css" />                
         <script type="test/javascript" src="http://yui.yahooapis.com/2.3.1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/animation/animation-min.js"></script>
         <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/dragdrop/dragdrop-min.js"></script>
      <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/container/container-min.js"></script>


<script type="text/javascript">
var panel1 = new YAHOO.widget.Panel("panel1", {
            underlay: "shadow",
            close: true,
            draggable: true } );
<div id='panel1'>dsfsd
      <div class='hd'>kl</div>
      <div class='bd'>ko</div>
      <div class='ft'>iio</div>

<!-- ************************************************************************** -->

Watch Question
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE