herkulis
asked on
link that depends on link
How can one display a hierarchy similar to an organization chart in which clicking on a link inside a textbox#1 will display its children link(s) inside textbox#2 and clicking on a link inside textbox#2 will display its children link(s) inside textbox#3, and so forth?
...
user clicks on "MotherOfAllLinks", the textbox#1 will show
<%
for (Iterator firstLevels = firstLevelList.Iterator(); firstLevel s.hasNext; ) {
FirstLevel firstLevel = (FirstLevel)firstLevels.ne xt();
%>
<a href="<%=[what should I put in here?]"><%=firstLevel.getC hildren()% >
<%}%>
....
I was thinking of something like "secondLevel.getChildren(s electedFir stLevelLin k)" but "selectedFirstLevelLink" is created at runtime and I do not know how to store it. Pleaes help! Thank you in advance.
...
user clicks on "MotherOfAllLinks", the textbox#1 will show
<%
for (Iterator firstLevels = firstLevelList.Iterator();
FirstLevel firstLevel = (FirstLevel)firstLevels.ne
%>
<a href="<%=[what should I put in here?]"><%=firstLevel.getC
<%}%>
....
I was thinking of something like "secondLevel.getChildren(s
ASKER
Tim,
Could you give some code examples? Thanks
Could you give some code examples? Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It's not 100% right...but you should see what I'm getting at :-)
ASKER
Tim,
That looked very good to me so far:) Can you make the list boxes scrollable in case there are alot of data? Also, can you make a 'master' hyperlink that would populate the first box? Thanks alot.
That looked very good to me so far:) Can you make the list boxes scrollable in case there are alot of data? Also, can you make a 'master' hyperlink that would populate the first box? Thanks alot.
ASKER
Tim,
I figured out the rest. Thank you very much. Happy Thanksgiving!
I figured out the rest. Thank you very much. Happy Thanksgiving!
ASKER
Could the administrator give me back 60points which I mistakenly added? Thank you
You need to post here: https://www.experts-exchange.com/Community_Support/ to get your 60 points back (just post a Q for 0 points asking) :-)
Good luck with it all :-)
Glad I could help :-)
Tim
Good luck with it all :-)
Glad I could help :-)
Tim
OR!
Have 3 list boxes in a form
Put javascript into the onClick event on each, so that it posts the form
Then in the JSP, get the selected values from the lists, and fill in the possibilities for the next list along...