JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Menus in Tables

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
ccwadsworth



Joined: 25 Sep 2007
Posts: 5
Location: Massachusetts

PostPosted: Tue Sep 25, 2007 8:16 pm    Post subject: Menus in Tables Reply with quote

Hello - I have recently purchased your COOLjsTree Pro and I am experiencing some difficulty with placing the menu inside a table.

I am using Front Page 2003 running Windows XP on IE 7.0

here is the code I am using:

<td valign="top" bgcolor="#FFFFFF" style="border-left-width: 1px; border-right: 1px solid #A00A15; border-top-width: 1px; border-bottom-width: 1px" height="274">
<script type="text/javascript">
var tree1 = new COOLjsTreePRO("tree1", TREE_NODES, TREE_FORMAT);
tree1.init();
</script><script type="text/javascript">myTree.init()</script>

and here is the result: http://www.donaldsondynamics.com/testsite/whyjill.htm

Ideally, I would like the menu to appear like this (with orange dividers too):
http://www.donaldsondynamics.com/home2.htm

I created this menu using OpenCube with whom I am very frustrated as their product does not perform as advertised.

The menu items Why Jill? and Why Coaching? are links to pages AND have submenus - which do not open.

If you could please provide me with information on how to position the menu in the tables as well as add menu dividers, I would greatly appreciate it!

Many thanks,
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Thu Sep 27, 2007 11:50 am    Post subject: Reply with quote

You forgot to enable relative positioning - that's why tree is positioned absolutely in the top left corner. Looks like you're using the builder - check RelativePosition box in the tree's properties.
Back to top
ccwadsworth



Joined: 25 Sep 2007
Posts: 5
Location: Massachusetts

PostPosted: Thu Sep 27, 2007 12:25 pm    Post subject: Reply with quote

AlexKunin wrote:
You forgot to enable relative positioning - that's why tree is positioned absolutely in the top left corner. Looks like you're using the builder - check RelativePosition box in the tree's properties.


Thank you Alex! That's what I needed!
However, The submenus under Why Jill? do not stay open when I click on the link. How do I get those menus to stay open AND go to the Why Jill? page at the same time? http://www.donaldsondynamics.com/testsite/whyjill.htm

Please advise! Thank you.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Thu Sep 27, 2007 12:35 pm    Post subject: Reply with quote

There is another option related to state persistence: SaveState.
Back to top
ccwadsworth



Joined: 25 Sep 2007
Posts: 5
Location: Massachusetts

PostPosted: Thu Sep 27, 2007 12:45 pm    Post subject: Reply with quote

Bless you! Thank you!!!

not that I want to complicate this any more, but is there any way to get a divider in between the menu items as seen here? http://www.donaldsondynamics.com/home2.htm
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Thu Sep 27, 2007 12:58 pm    Post subject: Reply with quote

CSS will help you:
Code:
.clsNode {
    display: block;
    padding: 1ex;
    border-bottom: 1px solid orange;
}
Back to top
ccwadsworth



Joined: 25 Sep 2007
Posts: 5
Location: Massachusetts

PostPosted: Thu Sep 27, 2007 1:09 pm    Post subject: Reply with quote

Brilliant! Thank you!!!
Back to top
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1