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:



September 9th, 2011 - 01:00
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 ?
September 9th, 2011 - 21:02
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..
September 9th, 2011 - 22:33
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
September 14th, 2011 - 09:24
hi,
how to chnage the following in dynamic.
FILE_ROOT will be dynamic path.
define(“FILE_ROOT”, “/public_html/mp3/songs3/”);
Thanks in advance
September 18th, 2011 - 06:29
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…”);
}
}
September 18th, 2011 - 16:16
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?
September 18th, 2011 - 16:30
Mekya I’m sory typing error in line 3 “define(“FILE_ROOT”, “./store/”.$diro);”
September 18th, 2011 - 16:37
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
September 20th, 2011 - 15:08
I want the background color and borders are not ?
December 4th, 2011 - 11:14
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.
December 4th, 2011 - 12:16
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.
December 6th, 2011 - 07:23
Hi,
Will you plz help me for how to integrate with my project…it will be better if you tell the integration with drupal.
December 9th, 2011 - 07:27
hey..
can u kindly please give me a tutorial how to integrate it with codeIgniter..
thank u so much
December 11th, 2011 - 13:57
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.
January 9th, 2012 - 21:24
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.
January 14th, 2012 - 16:13
yeap it is a little complicated
and i didnt get the point. Could u be more specific about the problem?
January 18th, 2012 - 10:02
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.
January 18th, 2012 - 12:58
firstly, u can try to understand how this code works…
January 30th, 2012 - 12:41
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
January 30th, 2012 - 15:19
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…
January 31st, 2012 - 07:25
Hello mekya team,
Thanks for the quick responce and the above hint made my day.
We really appreciate your help and assistance.
February 2nd, 2012 - 09:08
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
February 2nd, 2012 - 14:58
yeap sure it is possible
you can add new items in here
http://code.google.com/p/editable-jquery-tree-with-php-codes/source/browse/trunk/index.php#36
and you can bind functions in here
http://code.google.com/p/editable-jquery-tree-with-php-codes/source/browse/trunk/js/init.js#23
February 15th, 2012 - 03:12
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?