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

Treeview-menu vs history browser

Expand Messages
  • kyashan71
    Hi i have big trouble with Treeview-menu and history browser. I built a TreeView from Markup (http://www.developer-network.org/showthread.php?t=40) using
    Message 1 of 2 , Jan 2, 2008
    View Source
    • 0 Attachment
      Hi i have big trouble with Treeview-menu and history browser.
      I built a TreeView from Markup
      (http://www.developer-network.org/showthread.php?t=40)
      using method ultree.readList();.
      In my history js
      var anchors, i, len, anchor, href, section, currentSection;
      anchors =
      YAHOO.util.Dom.get("mytreeview").getElementsByTagName("a");
      for (i = 0, len = anchors.length; i < len; i++) {
      anchor = anchors[i];
      alert(anchor);
      .....

      I noticed that (YAHOO.util.Dom.get) don' t detect "a element " nested.

      Therefore my html is

      <ul>
      <li class="noexpand"><a href="?section=14" >prodotti1</a>
      <ul>
      <li class="noexpand"><a href="?section=20" >p11</a>

      </li><li class="noexpand"><a href="?section=21" >p12</a>
      <ul>
      <li class="noexpand"><a href="?section=22" >pt121</a>
      </li><li class="noexpand"><a href="?section=23" >p122</a>
      </li><li class="noexpand"><a href="?section=24" >pt123</a>
      </li>
      </ul></li>
      </ul></li><li class="noexpand"><a href="?section=16" >prodotti2</a>
      </li><li class="noexpand"><a href="?section=28" >prodotti3</a>

      </li><li class="noexpand"><a href="?section=29" >prodotti4</a>
      </li>
      </ul>

      but my alerts display 14,16,28,29.

      Is it possible to fix treeview_markup.js fix ?
      Or is it possible to apply history browser to original yui dinamyc
      treeview?

      Thanks and sorry form my english.
    • kyashan71
      Now i solved the problem changing the YUI tree_menu with another tree menu, but as soon as i ll try to find another solution.
      Message 2 of 2 , Jan 2, 2008
      View Source
      • 0 Attachment
        Now i solved the problem changing the YUI tree_menu with another tree
        menu, but as soon as i' ll try to find another solution.
      Your message has been successfully submitted and would be delivered to recipients shortly.