Table Organize

This script basically allows you to do three things: (1) Re-organize the rows (2) Re-organize the columns (3) Browse the table using the up/down arrows.

Table Organize demo

Changes to the code below will update the demo above in real time.



Sept. 20, 2007, 7:32 a.m. - Diego

Hi, I really liked the Table, but I can't seem to make it work in my computer. Both of the js that you are referencing are available throw the script source? It seems to me that the tableorganize_example.js is missing or something. Besides what is the html code at the end of the script for? I can't save it because of some character encoding problem.

Feb. 26, 2008, 11:50 p.m. - Rzl

Hi, me too really like the table. But it gonna be cool if you could add page pagination.

Feb. 28, 2008, 12:42 p.m. - Pokua

Whenever you refresh, the original table arrangement comes back... you lose all your modifications. How do you prevent that?

April 21, 2008, 7:04 a.m. - Pokua

Okay, I got it to work and also got the Database to record the changes. Howevre, I have a problem with IE. Sometimes, wehen you dray the botoom row, it overlaps the immediate row on top, and the table shortened by one row. Refreshing the page corrects the row overlap. Do you have that issue, and how do I get around that. Thanks

May 8, 2008, 3:30 a.m. - David

yeah Diego is correct, when downloading the JS files, the code does not work. The only way to get it working is to have ajaxdaddy.com as the base dir. Whats wrong?

April 11, 2009, 11:51 a.m. - _asterix_

Thx for this example! Good Inspiration for a beauity Table-Design. ;-)

May 4, 2009, 1:46 a.m. - Damin

Hi, I really liked the Table, but... Are there a method to scroll the items without move the header? When the list is too long, I can't see the header.

May 14, 2009, 2:08 a.m. - ravikumar

how can i use this example. if i want to get the info from db

June 5, 2009, 8:44 a.m. - Alex

Thank you for the script.

July 31, 2009, 10:02 a.m. - Brian

There's a bug in the source code. The apostrophe in row 13, "Don't Explain" messes with the swapping. You should do a string replace "'" with "\'" on the table data when swapping rows.

Dec. 3, 2009, 4:20 p.m. - Other Alex

Thanks for the great example that will be used in my custom photo contest. As a thanks I offer a fix for the IE issue. File: tableorganize_example.js Change: Tb.insertBefore(z,Tr[b]); To This: if(n!=(Trl-1)&&b!=Trl) { Tb.insertBefore(z,Tr[b]); } else { Tb.appendChild(z,Tr[b]); }

Dec. 16, 2009, 11:11 a.m. - Ian

Table's nice, but there is a bug in the script - the apostrophes aren't being escaped. You can see this in the demo above if you try to swap the artist and title columns, "Don't Explain" (row 13) isn't being carried over.

Sept. 17, 2011, 8:27 p.m. - Geoff

I am having the same problem that Diego and David had. It only works if I have ajaxdaddy.com as the base dir. And if I have that, it messes up my menus so that I can't get to the rest of my site.