470,591 Members | 1,484 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

How do I determine the number of lines displayed in browser?

joe
If I had a webpage that displayed a database in tabular form, it would
be nice to know how many lines of text the browser could display
without scrolling, then have the cgi script output the appropriate
number of lines of data to fill the screen.

I've seen examples of how to get the browser window size in pixels, but
is there a way to determine the number of lines that are displayed?

Thanks!

Joe McGuckin

Oct 2 '05 #1
1 1395
<jo*@via.net> skrev i meddelandet
news:11*********************@g49g2000cwa.googlegro ups.com...
If I had a webpage that displayed a database in tabular form, it would
be nice to know how many lines of text the browser could display
without scrolling, then have the cgi script output the appropriate
number of lines of data to fill the screen.

I've seen examples of how to get the browser window size in pixels, but
is there a way to determine the number of lines that are displayed?


Some like looking at five lines, some at twenty, regardless of window size.
Less lines means another trip to the server to see more, which may take time
and be more irritating than having to scroll.

How about letting the user choose the number of output lines (with a
<select> popup)?

--
Joakim Braun
Oct 2 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.