Gossamer Forum
Home : General : Perl Programming :

View flat text database

Quote Reply
View flat text database
Hi all,

I have a flat text file database around 800 lines. If i want to read it i have to scroll down tofrom top to bottom (1- 800..) and then i will lose my table header 9 column. Can we do something so if we go down to any record ID > 60 i still see the table header.

Please help me.

Thanks,
Code:
Frown
Quote Reply
Re: [britneythuyduong] View flat text database In reply to
I'm not sure what you mean...could explain a little more?
Quote Reply
Re: [Paul] View flat text database In reply to
Hi Paul,

I try to explain in English but i hope you understand :=)
My question is How to scroll Table Body while keeping Table Header fixed, example

Table Header:
ID Name DOB Address Phone Country
1 A
2 B
3 C
4 D
......
800 William 04/01/1975 1600 Virgina 123-234-5678 USA

If i scroll down to record 60 i can not see the table header
ID Name DOB .....
How can i make it so no matter i go to record > 50 i can see the record header like

ID Name DOB Address Phone Country
60 Lois 12/24/63 123 3rd st 434-232-5454 USA
61 John ..........

I hope you can understand what i try to say...Blush this is flat file databse and i write cgi so i can view record in html table.

Thanks,
Quote Reply
Re: [britneythuyduong] View flat text database In reply to
if you are letting your users view it Via HTML, just make a frame on the top section of the page...with the header info in it...then in the bottom frame load your text file database CGI script and it should show fine...



Crapshoot70 (this isn't my real name)
--
I don't like anyone...but everyone LOVES me Unsure
--
AKA...The Post Pirate Pirate
Quote Reply
Re: [Crapshoot70] View flat text database In reply to
I did that but the problem is when they print, and in cgi it keep expand the text in a field if people put a long text and the top header on the top frame can not expand with it..

How do i say...do you know what i mean Blush

Thanks
Quote Reply
Re: [britneythuyduong] View flat text database In reply to
I see what you mean...
but still I don't see the problem that you cannot use frames to solve it...it could be like

ID Name Phone Number <<< This stuff stays stationary (doesn't move)

1 Danny 485-4956 <<<

2 Jimmy 848-8845 <<<

. <<<This stuff moves

. <<<

. <<<

etc...

Is this what you mean?



Crapshoot70 (this isn't my real name)
--
I don't like anyone...but everyone LOVES me Unsure
--
AKA...The Post Pirate Pirate
Quote Reply
Re: [britneythuyduong] View flat text database In reply to
what i mean is split your HTML into two frames a top and bottom one...the top is like 10% the bottom is * or (the remaining 90%) then the text field is there...or even if you can make it into tables like
in the top frame have this table
<TABLE>
<TR>
<TD>ID</TD><TD>Name</TD><TD>Phone</TD>
</TR>
</TABLE>

then in the bottom frame have this table
<TABLE>
<TR>
<TD>1</TD><TD>Paul</TD><TD>908-4434</TD>
<TD>2</TD><TD>Bill</TD><TD>777-8947</TD>
</TR>
</TABLE>



Crapshoot70 (this isn't my real name)
--
I don't like anyone...but everyone LOVES me Unsure
--
AKA...The Post Pirate Pirate
Quote Reply
Re: [Crapshoot70] View flat text database In reply to
Using DHTML would be more sexy in my opinion. If you've got Mozilla check out it's demonstrations, or if you haven't - check out the attached DHTML fixed postitioning example file.

- wil
Quote Reply
Re: [Wil] View flat text database In reply to
Alternatively, just reprint the header information every 25 rows or so. Wink