freelanceprogrammers.org Forum Index » Cold Fusion

scroll/noscroll


View user's profile Post To page top
Chrystalheart Posted: Wed Aug 10, 2005 9:55 pm


Joined: 05 Apr 2005

Posts: 37
scroll/noscroll
I have a table which scrolls vertically, but the headers stay put. Now
the client wants to have the three leftmost columns on the right not
scroll, but have the rest of the table scroll horizontally as well. I
am having a lot of trouble figuring this out.

I am using div=tablescroll and setting the table scroll/noscroll
parameters in css. I have used class=noscroll on the cols th and td`s
for the cols I don`t want to scroll, but it isn`t having any effect.

I`m working in Cold Fusion, which is besides the point.. but people
always ask. Any help would be greatly appreciated.

Jen
Reply with quote
Send private message
View user's profile Post To page top
ny5i Posted: Thu Aug 11, 2005 4:11 am


Joined: 25 Apr 2005

Posts: 10
scroll/noscroll
On 8/10/05, Jennifer <chrystalheart@...> wrote:
> I have a table which scrolls vertically, but the headers stay put. Now
> the client wants to have the three leftmost columns on the right not
> scroll, but have the rest of the table scroll horizontally as well. I
> am having a lot of trouble figuring this out.

Make sure you`re using a class and not an ID - classes can be used
multiple times in a page, ID`s can only be used once.

HTH
Hatton
Reply with quote
Send private message
View user's profile Post To page top
Chrystalheart Posted: Thu Aug 11, 2005 10:22 am


Joined: 05 Apr 2005

Posts: 37
scroll/noscroll
Aha! I didn`t know that! But, unfortunately, I am using classes.
Any other ideas? The only thought I have is way elaborate and I`d
like to avoid it (I`m not even sure it would work)...

That is to make 2 divs, one which scrolls and which which doesn`t..
side by side, and put both recordsets in both, making the data
elements I don`t want to appear on each side hidden. Do you think
that would work? I haven`t worked with hiding elements like that
before. The reason I think I would have to do it that way is to make
sure that each record line was the right height, as many of the fields
are variable length (such as memo fields or long text fields) and I
need to keep the two groups of data synchronized.

Oy.

Jen

--- In cold_fusion@yahoogroups.com, "C. Hatton Humphrey"
<chumphrey@g...> wrote:
> On 8/10/05, Jennifer <chrystalheart@y...> wrote:
> Make sure you`re using a class and not an ID - classes can be used
> multiple times in a page, ID`s can only be used once.
>
> HTH
> Hatton
Reply with quote
Send private message
View user's profile Post To page top
janewilliams20 Posted: Thu Aug 11, 2005 1:25 pm


Joined: 12 Jul 2005

Posts: 20
scroll/noscroll
> That is to make 2 divs, one which scrolls and which which doesn`t..
> side by side, and put both recordsets in both, making the data
> elements I don`t want to appear on each side hidden. Do you think
> that would work? I haven`t worked with hiding elements like that
> before. The reason I think I would have to do it that way is to make
> sure that each record line was the right height, as many of
> the fields
> are variable length (such as memo fields or long text fields) and I
> need to keep the two groups of data synchronized.

Nice idea! I`ve been asked to do things like this before, and the record
height problem always stumped me. Just getting the column widths in line
when the headers don`t scroll has been bad enough - MSIE does *not* want
to obey orders about column widths!

I`m not sure what the browser would do about rendering the height of a
cell that isn`t visible, though. Would it still expand the height to
fit, or not? How were you thinking of "hiding" that section?
Reply with quote
Send private message
View user's profile Post To page top
Chrystalheart Posted: Thu Aug 11, 2005 7:56 pm


Joined: 05 Apr 2005

Posts: 37
scroll/noscroll
The how? Oh.. haven`t figured that out yet <grin>. I`ll let you know
how I did it if I can get it to work!

Jen

--- In cold_fusion@yahoogroups.com, "Williams, Jane"
<jane.williams@u...> wrote:
I`m not sure what the browser would do about rendering the height of a
> cell that isn`t visible, though. Would it still expand the height to
> fit, or not? How were you thinking of "hiding" that section?
Reply with quote
Send private message
View user's profile Post To page top
Chrystalheart Posted: Fri Aug 12, 2005 12:39 am


Joined: 05 Apr 2005

Posts: 37
scroll/noscroll
Jane, I do believe I`ve got it! Check this out...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<style type="text/css">
.tag2
{
visibility: hidden;
}
</style>

</head>

<body>
<!--- Left Layer with one full table set of data, the right half of
data is visible. The left half of data is hidden.--->
<div id="scroll_lower" style="position:absolute; top:190px;
left:50px; width:100px;">
<table><tr valign="top"><td>Test</td><td>Test2</td><td
class="tag2">Test3<br>Test3<br>Test3</td><td
class="tag2">Test4</td></tr>
<tr valign="top"><td>TestL</td><td>TestL2</td><td
class="tag2">TestL3<br>TestL3</td><td
class="tag2">TestL4<br>TestL4<br>TestL4<br>TestL4</td></tr>
<tr valign="top"><td>TestLL</td><td>TestLL2</td><td
class="tag2">TestLL3</td><td class="tag2">TestLL4</td></tr></table>
</div>

<!--- Right Layer with one full table set of data, the right half of
data is hidden. The left half of data is visible.>
<div id="scroll_upper" style="position:absolute; top:190px;
left:70px; width:800px;">
<table><tr valign="top"><td class="tag2">Test</td><td
class="tag2">Test2</td><td >Test3<br>Test3<br>Test3</td><td
>Test4</td></tr>
<tr valign="top"><td class="tag2">TestL</td><td
class="tag2">TestL2</td><td >TestL3<br>TestL3</td><td
>TestL4<br>TestL4<br>TestL4<br>TestL4</td></tr>
<tr valign="top"><td class="tag2">TestLL</td><td
class="tag2">TestLL2</td><td >TestLL3</td><td
>TestLL4</td></tr></table>
</div>
</body>
</html>


--- In cold_fusion@yahoogroups.com, "Jennifer" <chrystalheart@y...>
wrote:
> The how? Oh.. haven`t figured that out yet <grin>. I`ll let you
know
> how I did it if I can get it to work!
>
> Jen
>
> --- In cold_fusion@yahoogroups.com, "Williams, Jane"
> <jane.williams@u...> wrote:
> I`m not sure what the browser would do about rendering the height
of a
> > cell that isn`t visible, though. Would it still expand the
height to
> > fit, or not? How were you thinking of "hiding" that section?
Reply with quote
Send private message
View user's profile Post To page top
janewilliams20 Posted: Fri Aug 12, 2005 3:55 pm


Joined: 12 Jul 2005

Posts: 20
scroll/noscroll
> Jane, I do believe I`ve got it! Check this out...

Checking... yes, the heights work nicely, don`t they?

for a laugh, try setting both tables to show a border and give the RH
one a BGCOLOR.

Looks like we`re not going to want to get flashy like that in the real
thing.
Reply with quote
Send private message
View user's profile Post To page top
Chrystalheart Posted: Sat Aug 13, 2005 4:01 am


Joined: 05 Apr 2005

Posts: 37
scroll/noscroll
Actually, I am running into problems with display now. Serves me
right for being so cocky about it.

I do, on the actual report, use alternating background colors to
enhance readability. I am having issues with there being two
scrollbars now (and if I take one away, I think the rows will be off
at the bottom). I have background bleed through. I am having height
issues.

Why can`t clients ever want anything straightforward?

Jen

(repeating 50 bazillion times "The client is always right.. The client
is always right...")

--- In cold_fusion@yahoogroups.com, "Williams, Jane"
<jane.williams@u...> wrote:
> > Jane, I do believe I`ve got it! Check this out...
>
> Checking... yes, the heights work nicely, don`t they?
>
> for a laugh, try setting both tables to show a border and give the RH
> one a BGCOLOR.
>
> Looks like we`re not going to want to get flashy like that in the
real
> thing.
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help