| Author |
Message |
hqubain
Joined: 14 Jul 2003 Posts: 6
|
Posted: Tue Jul 15, 2003 6:54 pm Post subject: Want to use Frames |
|
|
What I have is a home page that has 3 frames. The first goes across and is simply a banner. The next two are vertical and reside under the banner. They are names m_right and m_left. In the left frame, I load an html file which is my cooljstree. So far so good. The expand/collapses and links work great. However, when the links load, theyload into the left frame which is the same location as my tree. What I want is to load the target of the links into the right frame instead of the left frame. The way i have done this before without using trees is to add the below line to the html page of the left frame:
<base target="m_right">
However, now what happens is my tree won't even expand. I think it because the top node is not a link to anything so therefore it technically is loading onto the right frame but of course nothing appears and my tree will not expand. Any ideas?
Thanks |
|
| Back to top |
|
 |
hqubain
Joined: 14 Jul 2003 Posts: 6
|
Posted: Tue Jul 15, 2003 7:16 pm Post subject: |
|
|
I figured it out.
Thanks |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Wed Jul 16, 2003 8:57 pm Post subject: |
|
|
For those who did not. If your code contains <BASE TARGET="something">, then your links like "javascript:..." will execute in context of the frame "something". And this frame almost for sure does not contain the tree, and browser will popup error messages (at least, show them in the status bar). That is why tree does not collapse/expand when <BASE> tag is present.
Correct way to specify target for a tree node:
| Code: | | ['My node', 'file.html', 'myFrame'], |
|
|
| Back to top |
|
 |
|