[thelist] JavaScript/DOM columns solutions/ideas?

Anthony Baratta anthony at baratta.com
Wed Apr 5 12:52:06 CDT 2006


If you are thinking AJAX, then the re-ordering can be done on the server side and sent back to the browser with the proper layout, and plopped into place.

If you want to reorder via the client side, store the "list" as an XML tree in the "flow" order, pinch out the element you want to remove and then use the changed XML tree to rebuild the column list.

At first pass, I'd try floating divs, iterating through the xml list grabbing every X number in the list based on how many columns you have. Or of you don't care about total number of columns wide, just care about how many rows there are - it's just like a pagination problem, calc how may columns you will need (e.g. pages) and re-order the list from there.




More information about the thelist mailing list