project of IKEEN Group
SimpleTree
jQuery SimpleTree Drag&Drop plugin is intended for displaying tree structures.

Download SimpleTreeD&D.zip
Demo
Comments

Key features

animate his parameter has a value "true/false" (enable/disable animation for expanding/collapsing menu items)
autoclose this parameter has a value "true/false" (enable/disable collapse of neighbor branches)
drag this parameter has a value "true/false". (enable/disable drag&drop )
(default: true)
speed animation speed (in ms or "slow", "normal", "fast") (only animate: true)
(default: "fast")
afterClick, afterDblClick this parameter defines callback function, which is executed after item clicked (set to "false" by default)
afterAjax this parameter defines callback function, which executes after ajax is loaded (set to "false" by default)
afterMove this parameter defines callback function, which executes after move node
(set to "false" by default)

function arguments (dd, ds, pos) :
    dd - destination element (Drag Destination);
    ds - dragged element (Drag Source);
    pos - position (Node Position);

example:

$('#SomeTreeId').simpleTree({
      afterMove:function(dd, ds, pos)
      {
         var msg = "position- "+pos+" \n"
         +"drag destination ID- "+$(dd).attr("id")+"\n"
         +" drag source ID- "+$(ds).attr("id");

         alert(msg);      
     }
});

afterContextMenu (new) this parameter defines callback function, which is executed after item click the right mouse button (set to "false" by default)
docToFolderConvert this parameter has a value "true/false"
(convert leaf to folder)
(default: false)



AJAX upload method:

If there is a need in AJAX upload, then place UL with "ajax" class and tag LI with URL for a loadable item.

Åxample:
<li><span class="text">Tree Node 1-1</span>
     <ul class="ajax">
          <li>{url:tree_load.php?tree_id=1}</li>
     </ul>
</li>

License Agreement:
Licensed under BSD http://en.wikipedia.org/wiki/BSD_License
Copyright (c) 2008, Peter Panov panov@elcat.kg, IKEEN Group http://www.ikeen.com 
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.
    * Neither the name of the Peter Panov, IKEEN Group nor the
      names of its contributors may be used to endorse or promote products
      derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY Peter Panov, IKEEN Group ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Peter Panov, IKEEN Group BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Releases history

Version 0.2

jQuery Simple Tree – There are two new features introduced in the new version:
1) Tree branch drag&drop and
2) Conversion of single branches into folders.

Version 0.1

jQuery Simple Tree – present script provides tree-view menu for your Website similar to the Windows Explorer type menu.

Basic functionality:
  • Simple to use
  • Supports unlimited number of levels and sublevels
  • Easy to install and fully configurable