how to get the link href of a directlink/actionlink or pagelink ?
Tarun Ramakrishna Elankath <[email protected]> 24 Feb 2003 04:06:20 +0530
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <1046039765.17720.68.camel@amber> |
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