Joined: Wed Jan 28, 2009 3:03 pm Posts: 3 Has thanked: 0 time Have thanks: 0 time
I found a lot of examples, but nothing can handle all my requirements. And because I'm not well schooled with JavaScript.
I have a table with 30 columns and a lot of rows.
Requirements: -horizontal scroll -vertical scroll (always visible) -fixed header (this is not the problem) -fixed first 3 columns (headers visible) -drag & drop for all colums -sorting columns
Any ideas?
msi_333
Question subject: Re: Full scrollable table
Posted: Wed Jan 28, 2009 9:47 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
in which requirement u have a problem ?
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
dormilona
Question subject: Re: Full scrollable table
Posted: Thu Jan 29, 2009 8:12 pm
Joined: Wed Jan 28, 2009 3:03 pm Posts: 3 Has thanked: 0 time Have thanks: 0 time
Attached the solution for IE, works perfect with drag & drop, sort. I don't know how to replace css: expression(..) with javascript for a FF solution.
robhmac
Question subject: Re: Full scrollable table
Posted: Thu Mar 05, 2009 11:45 pm
Joined: Thu Mar 05, 2009 11:38 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
Is there a way to modify this script so that you can also have a locked left column in addition to a locked row at the top?
Don't need any calculations, editing, just as a display table
Thank you.
robhmac
Question subject: Re: Full scrollable table
Posted: Thu Mar 12, 2009 8:24 pm
Joined: Thu Mar 05, 2009 11:38 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
Here is an old javascript by Richard Cornford that was posted in another forum that I was able to clean up. It provides locked column and row headers for a scrolling table. It works in FF, both mac and windows, and IE 6 and 7.
<a href="http://www.webmasterkb.com/Uwe/Forum.aspx/javascript/17834/scrolling-tables" target="_blank">Why the top left corner won't display, and other insights</a><br /><br />
Joined: Wed Jan 28, 2009 3:03 pm Posts: 3 Has thanked: 0 time Have thanks: 0 time
Thanks. Fixing header and first columns works. But how to add sorting? Found a lot of javascript solutions but don't know how put both solutions together. I am a newbie with javascript.
termi
Question subject: Re: Full scrollable table
Posted: Thu May 14, 2009 8:13 pm
Joined: Thu May 14, 2009 8:09 pm Posts: 1 Has thanked: 0 time Have thanks: 0 time
thanks! but i`m not able to modify this source code to show locked column headers please, help me. thanks. termi
robhmac
Question subject: Re: Full scrollable table
Posted: Sat Jun 06, 2009 1:07 am
Joined: Thu Mar 05, 2009 11:38 pm Posts: 5 Has thanked: 0 time Have thanks: 0 time
here is a live example that has both first column and first row locked