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 1 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 1 dojo-jsonreststore.zip

© 2003-2018 speich.net, Konzept und Programmierung Simon SpeichLetzte Aktualisierung 18.08.2018