R4nk3d Posted October 10, 2008 Share Posted October 10, 2008 Ok, so I'm trying to complete this task: Use PHP to extract info out of a mysql database and display it on the page --- Check! Use JS to allow the user to change the order of the information displayed --- Need Help Then save the order theyre in and change the id of the item so it is now sorted correctly and saved into the mysql database --- Need Help I have been searching everywhere for the drag and drop codes but I am not able to find anything that shows me how to do it. I think after I get the drag and drop part I will be able to get it into the mysql database myself. If you guys could please give me a link to a good tutorial or show me how to do it on here, I would greatly appreciate it. Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted October 10, 2008 Share Posted October 10, 2008 Did some quick Googling, here is what I turned up. It looks pretty helpful: http://www.isocra.com/2007/07/dragging-and-dropping-table-rows-in-javascript/ Quote Link to comment Share on other sites More sharing options...
R4nk3d Posted October 10, 2008 Author Share Posted October 10, 2008 I agree with you Project, that looks very helpful. All of the other ones I've seen just gave you the code and don't explain how to do it. I will look at this again as soon as I come home from school. Thanks! Quote Link to comment Share on other sites More sharing options...
Andy17 Posted October 10, 2008 Share Posted October 10, 2008 Here are two scripts I had bookmarked: http://www.javascriptkit.com/script/script2/sorttable/index.shtml http://www.javascriptkit.com/script/script2/tablefilter.shtml I believe you will find the first one more useful than the other one, though. Quote Link to comment 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.