troubleshooting Question

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

Avatar of BrianGO3
BrianGO3 asked on
Web Languages and StandardsJavaScript
1 Comment1 Solution10417 ViewsLast Modified:
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"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
      <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" />
      <![endif]-->
      
      <!-- 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>

</head>

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

<!-- ************************************************************************** -->
...
...
...
</body>
</html>


Thanks
ASKER CERTIFIED SOLUTION
Russell2566

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros