mekya

30Mar/10124

Demo of editable jquery tree with php codes

Right click the nodes to see available operations.

Press "Enter" to complete or press "Esc" to cancel an operation in adding or editing a node...

Because it is in demo mode, all changes will be reset if page refreshes...

http://code.google.com/p/editable-jquery-tree-with-php-codes/

Related posts:

    Editable jquery tree with PHP Codes
    Editable jquery tree now saves its state in cookies
    Expand/Collapse All feature in editable jquery tree with php codes
    traceper web interface demo
Comments (124) Trackbacks (1)
  1. Hi mekya First this is just what I needed for my web site thank you :) … I’m only experiencing a one problem … so I’m wonder whether you can help me with this … I need to use the $diro variable in the define(‘FILE_ROOT’,””) function for example define(‘FILE_ROOT’,”./store/”.$diro) but when I use this then the subfolders of $diro directory are empty… can u help ?

  2. I’m using the FILE_SYSTEM_PLATFORM …And I need the variable in the define(‘FILE_ROOT’,””) because the directory name is stored in the database …witch is uniqe for every user … Sou U can understand why I need the variable..

  3. hi Nexy,
    hmm I see,
    I think when is $diro variable initialized?
    it should be initialized before including config.php in other words before defining FILE_ROOT

  4. hi,
    how to chnage the following in dynamic.

    FILE_ROOT will be dynamic path.

    define(“FILE_ROOT”, “/public_html/mp3/songs3/”);

    Thanks in advance

  5. hi,
    I think you should send a parameter to php then check it out and define FILE_ROOT according to it. for instance
    if (isset($_REQUEST['file_root_type'])) {
    if ($_REQUEST['file_root_type'] == ‘music’) {
    define(“FILE_ROOT”, “/public_html/mp3/songs3/”);
    }
    else if ($_REQUEST['file_root_type'] == ‘video’) {
    define(“FILE_ROOT”, “/public_html/video/”);
    } else {
    define(“FILE_ROOT”, “/public_html/somewhere…”);
    }
    }

  6. But value is ok i have did that…., but I think the problem is not that … Look … this is something interesting I recently descovered I used the same define (‘FILE_ROOT’, ‘. / Store’. “Diro $)and I have just manualy added another folder in $diro direktory that is named the same and then the tree have listed all files and subdirectorije, but when the folder name is not identical to $ diro then it doesn’t list … understand me ?. LIKE THIS
    Example – $diro
    – $diro
    – subdirectorys are listed
    -files listed
    Example -$diro
    -subdirectorys listed but empty!
    – EMPTY
    This is that pokes mee :S ??? can u help?

  7. Mekya I’m sory typing error in line 3 “define(“FILE_ROOT”, “./store/”.$diro);” :)

  8. Soou do you know why is this hapening I meen, If there is for example directorys: $diro and in it one mor $diro directory then in the second directory the directory tree shows the all subdirectorys and folders….but if there is, for xample, only one $diro directory then directory tree shows only the sub directorys of that directory….and they are empty…:S

  9. I want the background color and borders are not ?

  10. it’s very powerful script , but please can you tell me how can i insert new value like lang and place.

    so my table fields are (id , name , position ,parent , slave , lang ,place).

    please help me.

    and thanks in advance.

  11. you can put lang and place values in tree by putting this values somewhere in the html code and accessing them with javascript when an item is clicked (http://code.google.com/p/editable-jquery-tree-with-php-codes/source/browse/trunk/js/init.js#51)
    or u can put these values to tree script which requires u to get understand how tree works so i recommend you to do the former one.

  12. Hi,

    Will you plz help me for how to integrate with my project…it will be better if you tell the integration with drupal.

  13. hey..
    can u kindly please give me a tutorial how to integrate it with codeIgniter..

    thank u so much

  14. Hi,
    I downloaded the code and had copied to the root folder on wamp server and renamed the folder as tree. “www/tree/” and when i run the code i just see Root and below that “-1 “. in the config file i gave the path as define(“FILE_ROOT”, “/www/Tree/”); but it doesnt work. please help me. i am using adobe cs5.

  15. I would like to contact you regarding your project “Editable jquery tree with PHP Codes”, first of all I congratulate you for this job, my part I want to edit your plugin, when I click on a file I open a text file and secondly each creation of a file will be assigned to an individual, so each person have own file. I tried to change the different query by adding utilisateur_id but it does not work. it is quite complicated and there that you can help me.

    Thank you in advance.

  16. yeap it is a little complicated :) and i didnt get the point. Could u be more specific about the problem?

  17. Hi

    I need to creat like this software in java so please guide me or i need some peace af code from your project.

    Please guide me.

  18. firstly, u can try to understand how this code works…

  19. Hello mekya team,

    I have been using your Simple Tree plugin in one of my project. and now I came to a requirements which needs me to make certain nodes read-only,meaning no drag&drop or context menu.

    Your assistance will be highly appreciated

  20. Hi Nilesh,
    you need to configure this function to disable context menu
    http://code.google.com/p/editable-jquery-tree-with-php-codes/source/browse/trunk/js/init.js#98

    you can disable drag and drop completely by setting drag to false as if “animate” in the above file.

    if u need to do this operation for certain nodes. u need to store nodes’ contextmenu and drag & drop options in javascript or in html. Then u can read that option and disable or enable that option at the runtime.

    I hope it would be useful…

  21. Hello mekya team,

    Thanks for the quick responce and the above hint made my day. :)

    We really appreciate your help and assistance.

  22. Hi Mekya,
    First, thanks for your fantastic development.
    I wonder if I can add another item on the menu that appears when I right click on a file.
    This way I could call my function to visualize the contents of the file.
    Is this possible?

    Thanks in advance.
    Joan

  23. A couple of questions.

    Is there a way to disable/stop folders from opening on mouseover() while dragging items?

    I’ve been reviewing the code and would like to implement multiselect for copy/paste. Has anyone tried this?


Leave a comment

(required)