473,586 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

New DHTML Tree Available (no js programing required!)

I've just put up a new script on my site:
http://www.mattkruse.com/javascript/mktree/

This script combines javascript and some tricky CSS to create the
easiest-to-implement expandable/collapsable tree I've seen anywhere.

Just define your tree structure in an <UL> list, set its CSS class,
include the .js source file, and that's it! Newer browsers will see it
as a fully-functional tree, and older browsers will see the plain
unordered list.

You don't have to touch a single javascript command (other than the
include!) to make a fully-functional tree in your page.

Oh, and don't worry, it's free ;)

The concept is based on work of others, as listed on the page above.
Hats off to them for doing a lot of the dirty proof-of-concept work!

Comments welcome, here or in email!

Matt Kruse
The Javascript Toolbox: http://www.mattkruse.com/javascript/
Jul 20 '05 #1
7 1467
"Matt Kruse" <ma**@mattkruse .com> wrote in message
news:7a******** *************** ***@posting.goo gle.com...
I've just put up a new script on my site:
http://www.mattkruse.com/javascript/mktree/

This script combines javascript and some tricky CSS to create the
easiest-to-implement expandable/collapsable tree I've seen anywhere.


I have yet to look at the code, but my initial browsing of the site above
seems positive.

Comments:
1. I think your "JavaScript " logo at the top of the page is probably
trademarked by O'Reilly, so you may want to reconsider whether or not to
include that on the page. (I could be wrong though)
2. It took me a while to notice the navigation under the "DHTML Tree". You
might include additional links to your Source page within the text of other
pages (like the Example and Documentation pages), for usability. For
example "See the *Documentation* for details ... Download the source from
the *Source* page"

I know those are not really related to your code, but I thought I would
offer it anyway. :)
Regards,
Peter Foti
Jul 20 '05 #2
"Peter Foti" <pe****@systoli cnetworks.com> wrote:
I have yet to look at the code, but my initial browsing of the site above
seems positive.
Well that's good - it's only been around for years :)
1. I think your "JavaScript " logo at the top of the page is probably
trademarked by O'Reilly, so you may want to reconsider whether or not to
include that on the page. (I could be wrong though)
Yes, it's their image. I'll remove it if they ask.
Actually, I'll do a whole site redesign someday, and move stuff over to
http://www.JavascriptToolbox.com/
2. It took me a while to notice the navigation under the "DHTML Tree". You might include additional links to your Source page within the text of other pages (like the Example and Documentation pages), for usability. For
example "See the *Documentation* for details ... Download the source from
the *Source* page"


True. Wanna do my site redesign? It's boring to me. I like doing fun new
things :)

Hope to get some comments on the lib itself :)

Matt
Jul 20 '05 #3
In article <7a************ **************@ posting.google. com>, one of infinite monkeys
at the keyboard of ma**@mattkruse. com (Matt Kruse) wrote:
I've just put up a new script on my site:
http://www.mattkruse.com/javascript/mktree/


I had a few problems with that: it does nothing (but degrades OK)
in Konqueror, but is causing Moz to crash (FreeBSD/KDE).

I'm guessing it should look something like the Document Tree view in
AccessValet? ( http://valet.webthing.com/access/ )

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #4
Matt Kruse wrote:
I've just put up a new script on my site:
http://www.mattkruse.com/javascript/mktree/

This script combines javascript and some tricky CSS to create the
easiest-to-implement expandable/collapsable tree I've seen anywhere.


Sounds nice. I've done something in ASP which browses the file-system
anc creates such a DHTML tree. If the client allows it can also be done
on the client side (the XSLT).
<http://outer-court.com/tech/asp_sitemap.htm >
Jul 20 '05 #5
On 9 Dec 2003 14:18:15 -0800, ma**@mattkruse. com (Matt Kruse) wrote:
I've just put up a new script on my site:
http://www.mattkruse.com/javascript/mktree/

This script combines javascript and some tricky CSS to create the
easiest-to-implement expandable/collapsable tree I've seen anywhere.

Just define your tree structure in an <UL> list, set its CSS class,
include the .js source file, and that's it! Newer browsers will see it
as a fully-functional tree, and older browsers will see the plain
unordered list.

You don't have to touch a single javascript command (other than the
include!) to make a fully-functional tree in your page.

Oh, and don't worry, it's free ;)

The concept is based on work of others, as listed on the page above.
Hats off to them for doing a lot of the dirty proof-of-concept work!

Comments welcome, here or in email!

Matt Kruse
The Javascript Toolbox: http://www.mattkruse.com/javascript/


Execellent script! I spent a long time looking for such a script for a
database driven php cms script I wrote. This will probably call for a
rewrite. I urge you to add the cookies to maintain state as this is
essential the kind of complex menus this script is capable of. I've
bookmarked you and will check back. Thanks!

Tony
Thanks

Tony Kulik
Jul 20 '05 #6
ma**@mattkruse. com (Matt Kruse) wrote in
news:7a******** *************** ***@posting.goo gle.com:
I've just put up a new script on my site:
http://www.mattkruse.com/javascript/mktree/

This script combines javascript and some tricky CSS to create the
easiest-to-implement expandable/collapsable tree I've seen anywhere.

Just define your tree structure in an <UL> list, set its CSS class,
include the .js source file, and that's it! Newer browsers will see it
as a fully-functional tree, and older browsers will see the plain
unordered list.

You don't have to touch a single javascript command (other than the
include!) to make a fully-functional tree in your page.

Oh, and don't worry, it's free ;)

The concept is based on work of others, as listed on the page above.
Hats off to them for doing a lot of the dirty proof-of-concept work!

Comments welcome, here or in email!


FWIW:
I took a look using Mozilla, and it seemed to work OK.
I then loaded the page in IE6, and it's still loading,
minutes later. I'm mentioning this in case you get
similar comments from others.
In fact, it's probably nothing to do with your page, per se.
The page appeared to load, but without the + signs and bullets
in the list, which I thought was odd. Then I noticed that IE
was telling me it had 130+ items left to download. It was proceeding
to update this message every few seconds, 4 items at a time.
I think it's a configuration issue with Norton Internet Security 2004,
which I recently installed.
Once the page was finished loading, the + signs and bullets didn't
appear until I reloaded the page.
In other words, if people have the same issue as I have, they may
mistakenly think the page doesn't work properly in IE6.

--
Dave Patton
Canadian Coordinator, the Degree Confluence Project
http://www.confluence.org dpatton at confluence dot org
My website: http://members.shaw.ca/davepatton/
Vancouver/Whistler - host of the 2010 Winter Olympics
Jul 20 '05 #7
"Dave Patton" <dp*****@remo ve-for-nospam.confluen ce.org> wrote:
ma**@mattkruse. com (Matt Kruse) wrote in
news:7a******** *************** ***@posting.goo gle.com:
The page appeared to load, but without the + signs and bullets
in the list, which I thought was odd. Then I noticed that IE
was telling me it had 130+ items left to download. It was proceeding
to update this message every few seconds, 4 items at a time.
I think it's a configuration issue with Norton Internet Security 2004,
which I recently installed.


That is interesting. I've not experienced it myself on a number of IE6 test
computers, but I do believe you ;)

One issue that does exist is that IE5.5+ doesn't always like to cache images
used as a background in CSS, which is done in this script. I did some
tweaking and thought I got rid of the problem, though, since I don't see it
anymore (it used to be _really_ bad!).

I'm going to keep looking at this issue, since trees could potentially get
large, and having to download a thousand +/- images over the internet could
be a bit slow :)

Thanks for the feedback, I'll keep it in mind for future reference and try
to come up with some solution to the general problem.

Matt
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
2653
by: Xah Lee | last post by:
Here's the belated Java solution. import java.util.List; import java.util.ArrayList; import java.lang.Math; class math { public static List range(double n) { return range(1,n,1); }
8
4206
by: Matt Kruse | last post by:
I've just put up a new script on my site: http://www.mattkruse.com/javascript/mktree/ This script combines javascript and some tricky CSS to create the easiest-to-implement expandable/collapsable tree I've seen anywhere. Just define your tree structure in an <UL> list, set its CSS class, include the .js source file, and that's it! Newer...
6
1457
by: pete | last post by:
Hello, I need resources for the following and would be appreciative to anyone that can help!!!! 1. a free website that clearly & comprehensively explains the DOM 2. a free website that has a clear & comprehensive tutorial of how to develop DHTML tree menus, such as the menu at http://www.giants.com/ it doesn't have to be a tutorial,...
3
2508
by: unurban | last post by:
I have a javascript menu based off of unordered lists that only shows the subnav links when you click on the main nav links. is there a way to keep any subnav items open after you click on a link and are transferred to a new page? Here is some of the code:
18
3529
by: Andromeda | last post by:
I've been trying to add a tree menu to my website with some luck (more or less). I came across a script on simplythebest.net, but I seem to be having a problem with it... and since they have no help section, this has brought me here. The script can be found at http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_100.html (no login...
2
1718
by: farseer | last post by:
Hi, have seen some sites where there exists DHTML Tree view menus that smoothly and eloquently slide up and down when a user expands or collapses a node. I am wondering how this is done? The effect i am going after is the transition...i already know how to create these types menus and enable the user to expand and collapse them...when a...
0
1037
by: raylopez99 | last post by:
Is there a multiple node collection in VC++/CLI standard library? With one node having many branches? I could construct one using for example the generic KeyedCollection <K,V>, where the "V" value would refer to a number of keys (branches) that themselves have references to other nodes, but I'm wondering if there's a preexisting collection...
1
1067
by: itsyou | last post by:
hi all, i have a report which has the option to view it in EXCEL. i use the regular "Content-type: application/vnd.ms-excel" and getting the XLS file generated properly. the problem is, the controls generated dynamically by JAVASCRIPT doesnt show up in the XLS file. Help is appreciated. Thanks -Ravig
15
2779
by: Xah Lee | last post by:
On Java's Interface Xah Lee, 20050223 In Java the language, there's this a keyword “interface”. In a functional language, a function can be specified by its name and parameter specs. For example: f(3) f(3, )
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8216
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.