In your HTML-File
$("#tree").dynatree({
initAjax: {url: "/dynatree-ajax.php",
data: {key: "root", // Optional url arguments
mode: "all"
}
},
In your PHP file
echo '[{"title": "Obergeschoss"},{"title": "Untergeschoss",
"children": [{"title": "kind"}]}]';
On 4 Jul., 21:18, moritz <
a5s...@gmail.com> wrote:
> 4.2.4 Initializing the tree structure from an Ajax response inhttp://
wwwendt.de/tech/dynatree/doc/dynatree-doc.html
> and the source code inhttp://
wwwendt.de/tech/dynatree/doc/sample-lazy.html
> should get you on the right track:
>
> The web service is expected to return a JSON node list, formatted like
> this:
> [ { ... }, { ... }, ... ]
>
> [{title: "Simple node", key: "1" },{title: "Lazy folder", isFolder:
> true, isLazy: true, key: "2"},{title: "Lazy document", isLazy: true,
> key: "3"}]
>
> On Jun 23, 2:51 am, subbarao <
puvvadi...@gmail.com> wrote:
>
>
>
> > Can any body give an example using initAjax option- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -