Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Column Header & Scrolling Records

Status
Not open for further replies.

Demon148

Technical User
Jan 16, 2003
11
0
0
US
Hello everyone,
I have a page with 3 Frames
I would like the 2nd Frame or Middle Frame to Be have Column headers in it so that the user can Scroll in the 3rd bottom frame which has all of the Records in it. I know that i could just set the bottom frame to like 20 records and have them just navigate between the pages in the display. Basically im wondering if any one has a solution for the mismatch in the Column width size for each frame. Tried using 100% on both pages but the bottom frame has the scroll bar and the middle frame does not. The widths must be able to compensate for browser window size. The easy solution would be to just give the middle frame a scroll bar also but it kind of defeats the purpose of what im looking for.
On a side note im planning to use cookies to sort the records based on the column heading in the middle frame.
FYI, im using Dreamweaver MX & ColdFusion MX.

Thank you in advance,
 
why not control the lengh of the records displayed and they will not "expand" the frame and make it scrollable
so you can eg.
[--------------------table-------------------]
| Book Name: | Authors:|....
|--------------------------------------------]
| Return of..|James,K..|...
[--------------------------------------------]


and the script would be:
------snip-----------
<!-- Create a Function &quot;FieldCut&quot; in order to count the character in returned string and then trim the string from the right-hand side -->


<%'***FieldCut - control output
Function FieldCut (FCfield,FClenght,FCtrimtype,FCtext)
if FCfield <> &quot;&quot; then
if FCtrimtype = True then
if LEN(FCfield) < FClenght then
FCfield = RIGHT(FCfield, FClenght)
Else
FCfield = RIGHT(FCfield, FClenght) & FCtext
End if
Else
if LEN(FCfield) < FClenght then
FCfield = LEFT(FCfield, FClenght)
Else
FCfield = LEFT(FCfield, FClenght) & FCtext
End if
End if
Response.Write(FCfield)
End if
End Function
%>
----------snap----------

then this script in action:
---snip-----------------------------
<%=FieldCut((RecordSet.Fields.Item(&quot;Field_Name&quot;).Value),10,false,&quot;...&quot;)%>
----------------snap----------------
so this example will &quot;cut&quot;
this_long_string_into_something_shorter_than_10_characters
into
this_long_...

I hope this is what ur looking for.. :)
All the best!

> need more info?
:: click here ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top