File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes java script Tree Code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "java script Tree Code" Watch "java script Tree Code" New topic

java script Tree Code

reddy raja

Joined: Sep 21, 2009
Posts: 17
Hi guys,

Tell me where did i have gone wrong in the below code.
Please guys reply soon.
Thank You

<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">


function m(){
var myTree = new Tree();
myTree.addTreeItem("my tree item A");
myTree.addTreeItem("my tree item B");
myTree.addTreeItem("my tree item C");
myTree.addTreeItem("my tree item D");

<BODY onload="m()" >


Shinelin Samuel
Ranch Hand

Joined: Mar 01, 2010
Posts: 55

I think there is no such JavaScript function as Tree(), as far as my knowledge, you can build Tree nodes using existing JavaScript APIs or have to develop one.

- Shinelin
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Please take the time to choose the correct forum for your posts. This forum is for questions on XYZ. For more information, please read this.

This post has been moved to a more appropriate forum.

Also, please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.

[Asking smart questions] [About Bear] [Books by Bear]
David Newton

Joined: Sep 29, 2008
Posts: 12617

Please read ItDoesntWorkIsUseless and TellTheDetails: you wouldn't expect an auto mechanic to diagnose and solve a problem with your car without being able to look at the car. We're not at your machine and have no other information other than what you choose to share--without knowing what's happening, what you expected, what (if any) errors you received, and so on, it's impossible to help.
I agree. Here's the link:
subject: java script Tree Code
It's not a secret anymore!