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

Re: Treemenu showing submenu

Expand Messages
  • jophof007
    Hi, I did find mine problem I didn t use the callback routine. Sorry for bothering. I like the library, documentation is good. John
    Message 1 of 2 , Mar 23, 2006
      Hi,

      I did find mine problem I didn't use the callback routine.

      Sorry for bothering.

      I like the library, documentation is good.

      John
      --- In ydn-javascript@yahoogroups.com, "jophof007" <jophof007@...> wrote:
      >
      > Hi,
      >
      > I want a dynamic subfolder to expand. Mine onclik on the folder node
      > is correctly dispatched to the getcategory. The routine is also
      > processed well (last alert is showing correctly).
      > But no submenu is expanded. Did I forget something?
      >
      > function getcategory ( nmeta ) {
      > var xmldoc, oopt, ooption, cid, cpath, oparsed, curl, omenu,
      > oparsed, odata, ocurrentmenu;
      >
      > ( nmeta == 0 ) ?
      > (curl = session ("contextpath" ) +
      > "/modelview/getcategory.jsp?mmodel=" + opagemenu.currentmmodel +
      > "&category=&language=" + opagemenu.currentlanguage) :
      > (curl = session ("contextpath" ) +
      > "/modelview/getmetacategory.jsp?category=&language=" +
      > opagemenu.currentlanguage);
      >
      > oparsed = parsexmluri(curl);
      > // replace the XML data with layout and content.
      > if (oparsed [1] ) {
      > alert ( oparsed[1] + curl );
      > } else {
      > xmldoc = oparsed [0];
      > oopt = xmldoc.getElementsByTagName ("opt");
      >
      > for (var i=0,nlen = oopt.length;i<nlen;i++) {
      > ooption = oopt [i];
      > cid = ooption.getAttribute ("v");
      >
      > odata = {};
      > odata.label = textnode (ooption);
      > odata.loader = "getentitytypes(" + cid + "," + nmeta + ")";
      > ocurrentmenu = new YAHOO.widget.TextNode (odata,
      > opagemenu.currentnode, true);
      > }
      > }
      > alert ("done getc" +opagemenu.currentnode );
      > }
      >
      > // this routine fires the above and isfired when clicking on a folder
      > // eval not so nice but leaves are coming from existing database
      > function getfolderwhenclicked (onode) {
      > opagemenu.currentnode = onode;
      > eval (onode.data.loader);
      > }
      >
      > John Ophof
      > http://open-modeling.sourceforge.net
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.