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.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jul 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    td on next line...any ideas?! or impossible

    I have a table that sorts

    but i want to be able to show a more info layer
    like the one showing below when you click on i image
    http://pear.php.net/packages.php?cat...Authentication

    my problem is that if i do the same way, the more info layer gets considered into sorting, which doesn't make sense and everything is out of order

    so i want to be able to have a td that shows up on the next line without using a tr to acheieve this....is this even possible?

    <tr>
    <td>3</td><td>Package 3</td>

    <td>more info layer: package three is blah blah</td> <---on the next line below the first 2 <td> tags

    </tr>

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you are sorting table rows...
    Try using a table header...

  • #3
    New Coder
    Join Date
    Jul 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    humm TH keeps that more info layer on the same line though...

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by khan8822
    humm TH keeps that more info layer on the same line though...
    That's what you have indicated you wanted...
    If not you need to better explain yourself...
    Providing a link to your page would aslo be helpful...

    .....Willy

  • #5
    New Coder
    Join Date
    Jul 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry i guess im stupid =(

    but what i want my final product is

    http://pear.php.net/packages.php?cat...Authentication

    where when you click on the i it shows more a more info layer

    AND with the ability to sort by like package name or description


    the sorting js im using is
    http://www.kryogenix.org/code/browser/sorttable/

    but I just can't figure out how I can make the more info layer not
    be considered into sorting when they are displayed

    this seems like very complex to do =(

  • #6
    Regular Coder
    Join Date
    May 2005
    Location
    Michigan, USA
    Posts
    566
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I will write out the code for you in pseudo code. I do not have the time to make this actually work. I do have something like this but I am bound by my employer to not give out everything

    First each row has an ID.

    M1
    M2
    M3
    M4
    M5
    M6

    Then each sub row has an id based on its parent.

    S1
    S2
    S3
    S4
    S5
    S6

    So what you end up with is:

    M1
    S1
    M2
    S2
    Ö

    When you pull the information into the array you only pull the Mís. You sort the Mís by the criteria that you have chosen. Then you reinsert the Sís. You would use the insertBefore() method of the DOM. (Or maybe another function defined in the Table object of the DOM). It can be all done on the client. And not done by posting back to the server like that page you are trying to model after.


  •  

    Posting Permissions

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