Skip to main content

Yahoo.tree : link in a new window

1 reply [Last post]
Joined: 2008-06-18


First please excuse me for my poor English, this is my jsp code in Netbeans 6.1 :

while (it.hasNext()) {
MetaModele element = (MetaModele);
chaineTree = chaineTree.concat("{ label : " + entreeNode + "',");
chaineTree = chaineTree.concat(" action: {topic:'/jmaki/dcontainer/setInclude', message: {targetId: 'page', value:'index.jsp'}},");

chaineTree = chaineTree.concat(" expanded: true");
if (it.hasNext()) { chaineTree = chaineTree.concat("},"); }
if (!(it.hasNext())) { chaineTree = chaineTree.concat("}"); }


chaineTree=chaineTree.concat(" ]}}");


When i click on the link node the content appear in the frame in the same page, it worked fine. But how modify the code for another page.

Thanks by advance..

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-07-31

Just to confirm:

You want to open a new page in a different frame instead of a internal container correct?

If this is what you are aiming to do we are going to need to use hrefs and have a "target" with the name of the external frame. If this is what you are looking to do let me know and I'll try to help with an example.