leachus2002 Posted August 11, 2011 Share Posted August 11, 2011 Hi Everyone. I have been looking at this website http://www.webresourcesdepot.com/dynamic-dragn-drop-with-jquery-and-php/ which shows an excellent example of using JQuery and PHP to create, and edit an ordered list. This is great for changing the order of a list - however, I would like to be able to move between several lists - and update a variable called "list_id". Does anyone know if this can be done, and if so, are there any tutorials out there to do this? Thanks Matt Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/ Share on other sites More sharing options...
JKG Posted August 11, 2011 Share Posted August 11, 2011 "move between several lists" i dont understand sorry. do you mean you would like multiple instances? Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/#findComment-1255814 Share on other sites More sharing options...
AyKay47 Posted August 11, 2011 Share Posted August 11, 2011 "move between several lists" i dont understand sorry. do you mean you would like multiple instances? Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/#findComment-1255816 Share on other sites More sharing options...
leachus2002 Posted August 11, 2011 Author Share Posted August 11, 2011 Hi, Yep - for example, a list would be a queue of work for a member of staff - and I would like to drag from 1 member of staff to another. Cheers Matt Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/#findComment-1255829 Share on other sites More sharing options...
JKG Posted August 11, 2011 Share Posted August 11, 2011 oh i see. are they in the same table? edit: even if they are, i dont think you can. not because of php but because of the way jquery uses sortable lists. i might be wrong, im not great with js and so i cant help you. sorry. Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/#findComment-1255830 Share on other sites More sharing options...
leachus2002 Posted August 11, 2011 Author Share Posted August 11, 2011 Yes they are - it would just be a case of updating the employee_id field of the table Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/#findComment-1255832 Share on other sites More sharing options...
AyKay47 Posted August 11, 2011 Share Posted August 11, 2011 have you seen what the jquery UI is capable of? http://jqueryui.com/demos/ Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/#findComment-1255838 Share on other sites More sharing options...
JKG Posted August 11, 2011 Share Posted August 11, 2011 fair enough. drop through tabs is pretty insane. i have alot of experience with this approach, but just using one sortable list. Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/#findComment-1255842 Share on other sites More sharing options...
leachus2002 Posted August 11, 2011 Author Share Posted August 11, 2011 How easy do you think it might be to incorporate this list: http://jqueryui.com/demos/sortable/#connect-lists with the first link? Thanks Matt Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/#findComment-1255845 Share on other sites More sharing options...
AyKay47 Posted August 11, 2011 Share Posted August 11, 2011 the jquery UI is very easy to use, as I use it for a number of its widgets.. they provide step by step instructions on how to incorporate the jquery UI in your webpage Quote Link to comment https://forums.phpfreaks.com/topic/244491-php-and-jquery/#findComment-1255859 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.