View Full Version : Dynamic Table
A1ien51
02-05-2004, 03:38 PM
Okay on the forum I moderate at I have been getting tired of people asking for a table with static headers and scrollable body so I wrote a script that does that and a little more.
The following code is still being developed so it is not completely done at this time, but I need to get more eyes on it for testing and ideas.
This table has the ability to scroll with static headers, widen the columns by dragging them, sort the columns with a click. There are other features being developed which are explained on the page.
Warning: the code behind this is very messy since I have not cleaned it up yet. There is no real style sheets behind this yet. So please do not start ranting about that!!
http://www10.brinkster.com/a1ien51/Customize/IE_Idea.html
I need your opinions on features that it has or does not have.
Hopefully within the beginning of next week I will have the dynamic part of it done where you can see your information on this page with a click of a button.
Please do not start using this on your sites until it is completely finished!
Eric
Antoniohawk
02-05-2004, 06:02 PM
Great script alien, very useful. :D One bug I found is that when you click on an item in the list, it decides to sort that column. Don't know if that is a big deal, but it bugs me.
A1ien51
02-05-2004, 06:10 PM
That is fixed. I did was testing something and I forgot to put it back. Thanks for pointing that out.
glenngv
02-06-2004, 09:27 AM
When resizing a column, the text should wrap if wrapping is on and not wrap if off. If wrapping is off, the text should not be covered so that when the length of the text is reached, resizing is ignored.
A1ien51
02-06-2004, 02:07 PM
This is what happens when the table is positioned relative.
http://www10.brinkster.com/a1ien51/Customize/relative_table.html
Willy Duitt
02-08-2004, 06:37 PM
Using IE6.2 both examples look the same to me. Both have
horizontal scrollbars which is what I think we are discussing.
.....Willy
Edit: Apparently, this is not what we are discussing.
I will remember to keep my opinions and observations to myself in the future.
CrUdE
02-12-2004, 11:23 AM
first : very nice script :-)
now i just have a question.
I saw u can add rows and entries etc, but is there a way that adding things can only be done by one person, like a log in to get the possibility to add a new entry?
tnx
A1ien51
02-12-2004, 01:42 PM
but that will not store the information without a server side language....
CrUdE
02-12-2004, 03:51 PM
hmmm, I thaught so, but maybe some Brainiac here could fix it :p
anyway tnx :-)
A1ien51
02-12-2004, 04:33 PM
It is not hard to do if you use PHP or ASP...Simple SQL statement....
sad69
02-12-2004, 05:46 PM
I'm not sure if it's just my computer, but whenever I resize a column, I can't stop resizing it. Like I've let go of the mouse button and wherever I move the mouse, it resizes that column in that direction.
But other than that it's a wicked script! At this point, that's the only flaw with it.
Good luck,
Sadiq.
Garadon
02-12-2004, 06:03 PM
My suggestions:
1. Make it OO so it easier to make 2 tables on each page.
2. Make one able to lock the table width forcing a vertical scroller if the colums width is larger than the tables.
3. I would suggest u had made the array [Row][Column] but that just a preference :) of how I read a table(Read a Row containing Data).
4. And a regexp to somehow seperate a column data before ordering. (Column data:'333 Mins') ordered by the number of mins.
A1ien51
02-12-2004, 06:47 PM
1. Make it OO so it easier to make 2 tables on each page.
--Been working on this, pain in the rear......
2. Make one able to lock the table width forcing a vertical scroller if the colums width is larger than the tables.
--I am going trying to set up options where the programmer can set any of the features on or off and set certain min/max limits.
3. I would suggest u had made the array [Row][Column] but that just a preference :) of how I read a table(Read a Row containing Data).
-- Been working on allowing either formatbeing allowed....
4. And a regexp to somehow seperate a column data before ordering. (Column data:'333 Mins') ordered by the number of mins.
-- will look into that in the future...
My mail goal right now is trying to get the CSS all straigthened out so it will be more browser compliant. I need to grab that CSS information so I can adjust parameters. This project was easy at the beginning, but is turning into more work than I thought....lol.
Eric
Paul Jr
02-13-2004, 05:58 AM
Very nice. :thumbsup:
I see you can add a row; what about editing a row? Or deleting one? ;)
Man, we're really killing you with these suggestions. };-P
A1ien51
02-13-2004, 01:35 PM
That is all in the works with a better interface then a prompt.
Going to have column swapping too..... but I do not think I am going to add columns to the mix since that would require a lot more work......
Garadon
02-13-2004, 09:11 PM
just an ide taken from my own weirdo table :)
make it intergrateable with form.(one able to submit a form with the values of the selected row).
oh and yes making some OO after u made it is hard, thats why one should start making it OO to begin with :)
Garadon
02-13-2004, 09:13 PM
just rechecked ur script and for the above suggestion u would need to make rows selectable to :)
A1ien51
02-13-2004, 11:12 PM
Actually the whole script started off with playing with a div and ended up like this. I did not even plan on this script!
A1ien51
02-17-2004, 02:29 PM
I have started on a new version. Works in everything by Opera so far that I have tested. It does not support many features, but should increase in the next day or two.
I am taking a lot of your ideas into consideration for this, I will see where this will take me...
http://www10.brinkster.com/A1ien51/Customize/dynamic_table.htm
Lukmann
04-16-2004, 10:24 PM
I have a problem...
About another currency like 1.000.000,00 (R$ Brazil) and date like 16/04/2004 (dd/mm/yyyy), this table does not order correctly...
Any help? :confused:
GeForce
04-17-2004, 02:05 PM
Hi Alien!
When this script is finished would I be able to have permission to make it available on my site (www.livescripts.co.uk (http://www.livescripts.co.uk)). It would be very much appreciated and I will of course keep in all credits to you.
Thanks,
Jonathan :cool:
Has anyone tried vertical scrolling w/ fixed header AND horizontal scrolling with the header scrolling with the table???
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.