Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Dynamic Table

  1. #1
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts

    Dynamic Table

    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/C...e/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
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Great script alien, very useful. 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.

  • #3
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    That is fixed. I did was testing something and I forgot to put it back. Thanks for pointing that out.
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,950
    Thanks
    0
    Thanked 236 Times in 233 Posts

    Suggestion

    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.

  • #5
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    This is what happens when the table is positioned relative.

    http://www10.brinkster.com/a1ien51/C...ive_table.html
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #6
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Last edited by Willy Duitt; 02-11-2004 at 08:17 PM.

  • #7
    New Coder
    Join Date
    Jan 2003
    Location
    Belgium
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    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
    "Hell, there are no rules here-- we're trying to accomplish something."
    Thomas A. Edison (1847 - 1931)

    "Any fool can make a rule, and any fool will mind it."
    Henry David Thoreau (1817 - 1862)

  • #8
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    but that will not store the information without a server side language....
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #9
    New Coder
    Join Date
    Jan 2003
    Location
    Belgium
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmmm, I thaught so, but maybe some Brainiac here could fix it

    anyway tnx :-)
    "Hell, there are no rules here-- we're trying to accomplish something."
    Thomas A. Edison (1847 - 1931)

    "Any fool can make a rule, and any fool will mind it."
    Henry David Thoreau (1817 - 1862)

  • #10
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    It is not hard to do if you use PHP or ASP...Simple SQL statement....
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #11
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #12
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #13
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    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
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #14
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Very nice.
    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

  • #15
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    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......
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •