aspose file tools*
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
Author

java script Tree Code

reddy raja
Greenhorn

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








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



</HEAD>

<SCRIPT >
function m(){
var myTree = new Tree();
window.alert("raja");
myTree.addTreeItem("my tree item A");
myTree.addTreeItem("my tree item B");
myTree.addTreeItem("my tree item C");
myTree.addTreeItem("my tree item D");
window.alert("raja");
}
</SCRIPT>

<BODY onload="m()" >


</BODY>
</HTML>




Shinelin Samuel
Ranch Hand

Joined: Mar 01, 2010
Posts: 55
Raja,

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
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

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: http://aspose.com/file-tools
 
subject: java script Tree Code