Hi list,
I have a dynamic javascript tree that loads nodes on the fly, by
obtaining it from the server. (I am using the famous xloadtree script at
webfx.eae.net)
Nodes of the tree are declared by tree elements (see bottom of email for
a xml snippet). The tree content conforms to a DTD. A node which is
expandable (ie parent node) must provide a SRC attribute. The SRC
attribute must link to an xml file that lists the child nodes for this
parent node.
Ofcourse this xml file is getting generated dynamically by a single
page. This page on the server needs the id of the parent node and
generates xml content for its children.
My problem is that I need to generate the SRC attribute for a TREE
element. In other words I need to get the HREF text which contains both
the link to this generating page and a parameter to it (id of the node).
I know that I can use the ForEach and the Any component to generate the
xml nodes. But how do I put the value of the link into the SRC attribute
?
All help gratefully appreciated,
Tarun
tree>
<tree text="Loaded Item 1" action="href://webfx.eae.net" />
<tree text="Loaded Item 2">
<tree text="Loaded Item 2.1" action="javascript:alert(2.1)" />
</tree>
<tree text="Load "tree1.xml"" src="tree1.xml" />
</tree>
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer