Some important question

Explorer like navigation tree for websites
Navigationsbaum für Internet Auftritte.
Post Reply
Klaus
Posts: 2
Joined: 21 Dec 2005, 12:34
Location: Poland

Some important question

Post by Klaus »

Hello Hans,
I am very pleased to see you and your forum.
It's a great idea? :D

I have been watching your tree menu for a long time. Now, I can ask you
some important (for me) questions.
I will be very happy to use your tree menu instead of my current at
http://www.pcf.pl but there are three important question:

1. Is it possible to omit icons (like http://www.pcf.pl/vsys/pcf/firma/index.htm)?
2. Is it possible to wrap a long items?
3. Is this menu compatible with new browsers?

---------
Best regards
Klaus
User avatar
Hans
Site Admin
Posts: 77
Joined: 16 Dec 2005, 16:52
Location: Germany
Contact:

Your important questions

Post by Hans »

Hello Klaus,

Thank you for your questions:

1. Is it possible to omit icons?
Answer:
Of course it is possible to omit icons. When instantiating TreeMenu you only have to write 'false' for the argument 'showIcons'.
E.g.: tree = new treemenu('tree', ..., false, ..., ...);

2. Is it possible to wrap long items?
Answer:
In html there is no direct way to calculate the width of a string/item and therefore it is not possible to automatically wrap a given string. Because I don't know which textsize and frame-width is used on each website (adjusted css-Styles), i did not implement a general wrap-routine.
But if you individually want to wrap long items you could implement a small javascript routine and include it in the routine 'writeNodeText' in 'treemenu.js'. The routine would have to count the characters, assign them widths and add the widths to get the overall string width. Then the routine could wrap according to the width you specify. You also should consider the indenting of the text in following lines.
To enable the visitors to read even long items i allowed adjusting the width of the menu-frame.

3. Is the menu compatible with new browsers?
Answer:
TreeMenu uses a very conservative set of html-commands. So it supports all browsers i know. But nevertheless there are some browsers with own bugs included. E.g. some Netscape browsers can't change the folder-icons (open/close) dynamically and older versions of Opera don't support tooltips. But these are inkompatibilities of the browsers occuring with all javascript driven trees.

I hope this helps you to change to TreeMenu.
Hans Bauer
Your forum admin
Klaus
Posts: 2
Joined: 21 Dec 2005, 12:34
Location: Poland

Re: Your important questions

Post by Klaus »

Hans wrote:Hello Klaus,

Thank you for your questions:

1. ...
Hello Hans,
great thx for your answer.

I will try to use your tips.
-------
Best regards
Klaus
Post Reply