Page 1 of 1
Some important question
Posted: 21 Dec 2005, 13:07
by Klaus
Hello Hans,
I am very pleased to see you and your forum.
It's a great idea?
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
Your important questions
Posted: 21 Dec 2005, 13:57
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
Re: Your important questions
Posted: 21 Dec 2005, 15:28
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.