firetag
11-04-2010, 12:49 AM
I am working on a site where a user can post links to different sites.. I need a way to let users reorder these links that they add... right now if a user wants to reorder their links they have to delete them all and add them on in the order they want them to be in... which obviously isn't very good.. so I need a new way to let users reorder links
I would like to let users reorder them using a drag and drop interface, but I don't know how to use ajax to make the php calls to save the new spot of the link... I would also like to make sure that users without javascript are taken care of too.. I think the best way to do this is do have a column on the database called ordernumber or something like that... and the order number would change depending on the spot, but I would have to change the order number on everything else.... Any Ideas/suggestions?
I would like to let users reorder them using a drag and drop interface, but I don't know how to use ajax to make the php calls to save the new spot of the link... I would also like to make sure that users without javascript are taken care of too.. I think the best way to do this is do have a column on the database called ordernumber or something like that... and the order number would change depending on the spot, but I would have to change the order number on everything else.... Any Ideas/suggestions?