Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-04-2005, 04:52 PM   PM User | #1
khan8822
New Coder

 
Join Date: Jul 2005
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
khan8822 is an unknown quantity at this point
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>
khan8822 is offline   Reply With Quote
Old 07-04-2005, 06:22 PM   PM User | #2
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
If you are sorting table rows...
Try using a table header...
Willy Duitt is offline   Reply With Quote
Old 07-04-2005, 06:42 PM   PM User | #3
khan8822
New Coder

 
Join Date: Jul 2005
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
khan8822 is an unknown quantity at this point
humm TH keeps that more info layer on the same line though...
khan8822 is offline   Reply With Quote
Old 07-04-2005, 06:55 PM   PM User | #4
Willy Duitt
Banned

 
Join Date: Sep 2003
Posts: 3,620
Thanks: 0
Thanked 0 Times in 0 Posts
Willy Duitt is an unknown quantity at this point
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
Willy Duitt is offline   Reply With Quote
Old 07-04-2005, 07:07 PM   PM User | #5
khan8822
New Coder

 
Join Date: Jul 2005
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
khan8822 is an unknown quantity at this point
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 =(
khan8822 is offline   Reply With Quote
Old 07-05-2005, 12:34 PM   PM User | #6
SpirtOfGrandeur
Regular Coder

 
Join Date: May 2005
Location: Michigan, USA
Posts: 566
Thanks: 0
Thanked 0 Times in 0 Posts
SpirtOfGrandeur is an unknown quantity at this point
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.
SpirtOfGrandeur is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:22 PM.


Advertisement
Log in to turn off these ads.