Greetings:

I am trying to get a proof of concept going for using Jquery Treeview
Async to build a dynamic tree with JSP. I looked at the documentation
on the Treeview website but I am unable to get this to work.

My "host" page calls another jsp as follows:

$(document).ready(function(){
         $("#asynctree").treeview({
                  url: "page_parts/pageGuidTreeViewSource.jsp"
                 })
});

On this same "host" page I have this simple structure:

<ul id="asynctree">

</ul>

The page I am calling has a tag that is producing some sample JSON.
What happens is the data is returned but it simply stays in it's
"native" JSON format like this:

{"outer":"foo","inner":
{"innerProp1":"val1","innerProp2":"val2","inner2":
{"inner2Prop1":"in2p1","inner2Prop2":"in2p2"}}}

So to sum up the page is called but the tree is never built.

I am trying to follow the examples on the treeview website so this may
be an example of me not fully understanding what I need to do.

Any help would be appreciated.

Sincerely,

SParky

Reply via email to