guowei1000
05-27-2004, 03: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!
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!