Drag and Drop Ordering
Drag and Drop Ordering
Background:
I'm creating an inventory page that can be reordered. On the page there are 12 different locations, each with storage items. I'm using the tablednd library, downloaded from:
http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/
Once an item is reordered, I'm using Ajax to reload that storage location so that the new order is accurate in the row ID.
My problem:
When I reload the section using Ajax, the drag and drop no longer works. I've looked at the source code, and all the classes that are necessary for them to work are being rewritten correctly. It just doesn't work. Also, the other storage locations still work after the Ajax call, so I know it's an issue with the code produced in the Ajax call.
Question:
Does anyone know how to work around this bug, or know of a better library to use (I need a library that allows me to drag table rows)?