Posts Tagged ‘tree’

Persistent drag and drop tree with jQuery, PHP and MySQL – CRUD

Posted on the August 4th, 2009 under Javascript, MySQL, PHP, Programming, jQuery by Mauro

Many people asked me how to implement the basic CRUD functionalities for the D&D Tree, so here it is:


download Download persistentTreeCRUD.zip

I use the simpletree callback function afterDblClick for the modify functionality, and a simple jQuery click for add and delete. I also used nyroModal for the popup windows.
In this example i reload the page when a CRUD operation is performed, a better implementation should use ajax to modify the tree on the fly.
Is not perfect but it works :) Enjoy!

Donate 1 euro, buy me a coffee, I need it to write more posts! Thanks ;)