Loading ...
Sorry, an error occurred while loading the content.

15823Re: [ydn-javascript] Re: Constructing submenu problem

Expand Messages
  • dav.glass@yahoo.com
    Jul 25, 2007
    • 0 Attachment
      Won --

      Don't forget to show the menu :)
      Under the render() call, place this line:
      oMenu.show();
       

      Dav

      Dav Glass
      dav.glass@...
      blog.davglass.com
       
       
      + Windows: n. - The most successful computer virus, ever. +
      + A computer without a Microsoft operating system is like a dog
      without bricks tied to its head +
      + A Microsoft Certified Systems Engineer is to computing what a
      McDonalds Certified Food Specialist is to fine cuisine +


      ----- Original Message ----
      From: Won Sun Parque <idmail@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Wednesday, July 25, 2007 12:32:32 PM
      Subject: [ydn-javascript] Re: Constructing submenu problem

      Hi, Dav. Thanks for the reply. I did what you recommended, but now the menu doesn't show at all anymore. :P

      I put the page on the web: http://www.wonsun. com/menu_ test.html

      Anyone can tell me what I did wrong? >_<

       

      Thanks.

      Won Sun


      --- In ydn-javascript@ yahoogroups. com, dav.glass@.. . wrote:
      >
      > Won --
      >
      > The script for container is not linked in properly:
      > src=http://yui. yahooapis. com/2.2.2/ build/build/ container/ container_ core-min. js"
      >
      > should be:
      > src=http://yui. yahooapis. com/2.2.2/ build/container/ container_ core-min. js"
      >
      > You should also wrap the js like this:
      >
      > var oMenu = null;
      > YAHOO.util.Event. onAvailable( 'leftmenu' , function() {
      > oMenu = new YAHOO.widget. Menu("leftmenu" );
      > oMenu.render( );
      > });
      >
      > That will keep IE from throwing the really annoying Operation Aborted message...
      >
      > Hope that helps :)
      >
      > Dav
      >
      >
      > Dav Glass
      > dav.glass@.. .
      > blog.davglass. com
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      > ----- Original Message ----
      > From: Won Sun Parque idmail@...
      > To: ydn-javascript@ yahoogroups. com
      > Sent: Tuesday, July 24, 2007 4:33:14 PM
      > Subject: [ydn-javascript] Constructing submenu problem
      >
      > Hi, this is my first time using YUI. I am testing the water with the pop-up
      > submenu but can't seems to figure it out.
      >
      > The following is the code for the page. Submenu isn't showing up at all.
      > Can someone show me what I did wrong? :P
      >
      > Thanks....
      >
      > ------------ --------- -----
      > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
      > Transitional/ /EN" "http://www. w3.org/TR/ xhtml1/DTD/ xhtml1-
      > transitional. dtd">
      > <html xmlns="http: //www.w3. org/1999/ xhtml";>
      > <head>
      >
      > <meta http-equiv=" Content-Type" content="text/ html; charset=iso- 8859-
      > 1" />
      > <title>Untitled Document</title>
      >
      > <!-- Yahoo! YUI Library for Dynamic Menu -->
      > <!--CSS-->
      > <link rel="stylesheet" type="text/css"
      > href="http:/ /yui.yahooapis. com/2.2.2/ build/fonts/ fonts-min. css";>
      > <link rel="stylesheet" type="text/css"
      > href="http:/ /yui.yahooapis. com/2.2.2/ build/menu/ assets/menu. css";>
      > <!-- Dependencies -->
      > <script type="text/javascri pt"
      > src="http:// yui.yahooapis. com/2.2.2/ build/yahoo- dom-event/ yahoo-dom-
      > event.js"></script>
      > <script type="text/javascri pt"
      > src="http:// yui.yahooapis. com/2.2.2/ build/build/ container/ container_ core-
      > min.js"></script>
      > <!-- Source File -->
      > <script type="text/javascri pt"
      > src="http:// yui.yahooapis. com/2.2.2/ build/menu/ menu-min. js"></script>
      >
      >
      > </head>
      >
      >
      > <body>
      > <div id="leftmenu" class="yuimenu" style="width: 100px;">
      > <div class="bd">
      > <ul class="first- of-type">
      > <li class="yuimenuitem first-of-type"><a href="#">menu 1</a>
      > <div id="menu1" class="yuimenu">
      > <div class="bd">
      > <ul class="first- of-type">
      > <li class="yuimenuitem"><a href="#">option 1</a></li>
      > <li class="yuimenuitem"><a href="#">option 2</a></li>
      > <li class="yuimenuitem"><a href="#">option 3</a></li>
      > <li class="yuimenuitem"><a href="#">option 4</a></li>
      > </ul>
      > </div>
      > </div>
      > </li>
      > <li class="yuimenuitem">menu 2</li>
      > <li class="yuimenuitem">menu 3</li>
      > <li class="yuimenuitem">menu 4</li>
      > </ul>
      > </div>
      > </div>
      >
      > <script type="text/javascri pt">
      > var oMenu = new YAHOO.widget. Menu("leftmenu" );
      > oMenu.render( );
      > </script>
      >
      > </body>
      >
      > </html>
      > ------------ --------- -----
      >
      >
      >
      >
      > Yahoo! Groups Links
      >


    • Show all 8 messages in this topic