Drag and Drop Sorting

Discussion in 'JavaScript' started by digdogger, Jun 19, 2008.

  1. #1
    I'm looking to create a drag and drop sorting interface for an image gallery.

    I've seen some ways of doing this with jquery and table rows (http://plugins.jquery.com/project/TableDnD) , however, I want
    to do this table cells. Imagine trying to reorder a 6x6 grid of images.

    Anyone see this done anywhere? Any simple way to implement this?
     
    digdogger, Jun 19, 2008 IP
  2. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'd say you're on the right track with looking there. The jQuery framework would be best used for this but I'd say to just use the Sortables plugin and set it up to do what you want (which I don't really think would be that hard if you actually know what you're doing and not expecting one of us to code everything for you).

    http://docs.jquery.com/UI/Sortables
     
    zerxer, Jun 19, 2008 IP