| Author |
Message |
Evil Turnip
Joined: 14 Jan 2005 Posts: 6
|
Posted: Mon Feb 14, 2005 9:27 am Post subject: Support ? - any on frames ? |
|
|
Hi
I have been wanting to purchase the tree menu for a while now and have put it off due to the lack of support. I really dont wanna buy a few licences without support ...so ill try again with my tech problem
Im trying to call the tree from a frame , so the tree opens up when alink is clicked from the other frame
I can get the link working like this
<a href="javascript:void(tree1.collapseAll(true), tree1.selectNode(3), tree1.expandNode(0))">Toggle 'test'</a>
but would like this to be on another frame
Any ideas ?
G |
|
| Back to top |
|
 |
Sergey Nosenko Developer
Joined: 19 Jan 2003 Posts: 75
|
Posted: Mon Feb 14, 2005 10:58 am Post subject: |
|
|
tree1 variable can't be accessed from other frame. You need change path to the tree variable like this:
| Code: | | window.top.frames['frameName'].CTrees['tree_name'].collapseAll(true) | or
| Code: | | window.top.frames['frameName'].tree1.collapseAll(true) |
|
|
| Back to top |
|
 |
Evil Turnip
Joined: 14 Jan 2005 Posts: 6
|
Posted: Tue Feb 15, 2005 9:09 am Post subject: |
|
|
javascript:void(parent.topFrame1.tree1.collapseAll(true), parent.topFrame1.tree1.selectNode(34), parent.topFrame1.tree1.expandNode(23))
this code does what i need perfectly from the other frame
but when i have a folder open with plenty of children which needs a scroll bar why does it scroll back to the top of the page ! when a node is highlighted
Anyway to stop this ?
G |
|
| Back to top |
|
 |
Evil Turnip
Joined: 14 Jan 2005 Posts: 6
|
Posted: Tue Feb 15, 2005 1:31 pm Post subject: |
|
|
ok another question
is it possible from the link i wrote above in the previous post to call an anchor !
and then put an anchor within the TREE NODES !
like so ...
["test", null, '<a name = "middle">'],
so when i click on the link it would call the anchor and move the scroll bar down to where i need it if you catch me drift
javascript:void(parent.topFrame1.tree1.collapseAll(true), parent.topFrame1.tree1.selectNode(39), parent.topFrame1.tree1.expandNode(23)#middle) |
|
| Back to top |
|
 |
Sergey Nosenko Developer
Joined: 19 Jan 2003 Posts: 75
|
Posted: Sun Feb 20, 2005 9:12 pm Post subject: |
|
|
| Sorry for delay. I have ot think about it. I think it possible, but I need more time |
|
| Back to top |
|
 |
|