speich.net logo

Lazy load, update, create and delete dijit tree items

The root of the tree (images) is loaded with a GET request on page load. When the users expands a folder, a new GET request is issued to fetch its contents and the response is cached. Creating/deleting a tree item will revert all changes in the tree, because the JsonRestStore sends a GET first and the server response does not contain these previous changes (in this demo they are simply not implemented. The server just sends a 200 or 500.

This demo belongs to part 2 of the tutorial: REST with Dojo and PHP.

Demo of creating, modifying and deleting tree items lazily.

log window

Download the zipped demo file of part 1dojo-jsonreststore.zip

© 2009 speich.net, Konzept und Programmierung Simon Speich.
Letzte Aktualisierung: 03.01.2010

Alle Bilder auf diesen Seiten dürfen, unter Ausnahme des Logos, für private Zwecke frei verwendet werden sofern der Bildautor folgendermassen angeben wird: Foto Simon Speich, www.speich.net.
Für kommerzielle Zwecke oder höhere Bildauflösungen muss eine Lizenz gekauft werden.