View Full Version : Tree ? Dom Xml Javascript ?

05-27-2004, 04:54 AM
Sry to bother but i'm a newibe to this language but my boss wan me to do a treelist menu like the window explorer using Javascript and access a Xml file using Dom. I understand how the Dom work and the Xml but i lack the way to use the Javascript to access the XML and do a table that when the user click on the node it will appear or disappear it children node. I got a few script that work really well but i'm dun understand it. :confused:
So my qustion is: how to build a tree from xml using Dom ? can someone point to me a link to a tutorial or something? Try a few tutorial but all those are abit sample and didnt tell me how to read all the childNode and children and text from the Xml cause their one is hardcoded one.
And other is how to appear and disappear a node? i cant add a method in like onClick to the tag after the Javascript create the table :confused:
I know i'm a newbi but i really need help. Nw i left with 1 week time to finish!

05-27-2004, 06:37 PM

Why re-invent the wheel?


05-28-2004, 04:05 AM
omg!! U actually need to pay to do a Dhtml?

Anyway i found a bk on the tree menu, lucky i'm a library type of guy :D

Thanks for all ur help

oh ya i just read the rules so i'm really sry that i have bother, din know tat this is not a newbie friendly zone.

Cheers and peace

05-28-2004, 08:09 AM

That link was a free download. And who said this forum was not newbie friendly? We all started as newbies! I don't see how you got that from my response either..

Anyway, glad that you got your issue sorted out.