error when calling yahoo ui library

komykomy Registered Users Posts: 19 Big grins
Hi,

I've coded a user friendly URL hack that uses yahoo panel widget. Whenever the following CSS and Javascript library are not included in my header section, I got error.
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.2.1/build/container/assets/container.css"> 
<*script type="text/javascript" src="http://yui.yahooapis.com/2.2.1/build/container/container-min.js"></script*>
Error:
YAHOO.widget.Panel is not a constructor
[URL="http://www.dgrin.com/"]wrappedFn[/URL]([URL="http://www.dgrin.com/"]load [/URL])yui_core-20070412... (line 105)

[IMG]chrome://firebug/content/blank.gif[/IMG]        YAHOO.gallery.container.wait = new YAHOO.widget.Panel("wait",{width:"24...
Is it true that the above two libraries need to be included when I use the Panel widget? Or is that anything that I am doing wrong in my code?

You can see my hack at: http://www.dgrin.com/showthread.php?t=59237

Thanks for help!

Kevin

Comments

  • {JT}{JT} Registered Users Posts: 1,016 Major grins
    edited April 18, 2007
    Kevin,

    Yes, those two things need to be included in your code. We don't use the container js on every page, so it is best to have it in your cobranding. We will make an announcement if we ever start using the container.js regularly on every page so you can remove yours.

    JT


    komy wrote:
    Hi,

    I've coded a user friendly URL hack that uses yahoo panel widget. Whenever the following CSS and Javascript library are not included in my header section, I got error.
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.2.1/build/container/assets/container.css"> 
    <*script type="text/javascript" src="http://yui.yahooapis.com/2.2.1/build/container/container-min.js"></script*>
    
    Error:
    YAHOO.widget.Panel is not a constructor
    [URL="http://www.dgrin.com/"]wrappedFn[/URL]([URL="http://www.dgrin.com/"]load [/URL])yui_core-20070412... (line 105)
    
    [IMG]chrome://firebug/content/blank.gif[/IMG]        YAHOO.gallery.container.wait = new YAHOO.widget.Panel("wait",{width:"24...
    
    Is it true that the above two libraries need to be included when I use the Panel widget? Or is that anything that I am doing wrong in my code?

    You can see my hack at: http://www.dgrin.com/showthread.php?t=59237

    Thanks for help!

    Kevin
Sign In or Register to comment.