By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
<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.