Re: Scrollbar + javaScript
| From: | Filip de Waard | Date: | Mon, 15 Mar 2004 14:49:28 +0000 |
| Subject: | Re: Scrollbar + javaScript | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33456@lists.php.net to get a copy of this message | ||
On Mar 15, 2004, at 11:20 AM, Nadim Attari wrote:
Hello, This is much an HTML/javaScript problem (and not PHP). Your help is appreciated! Is there a way to know (e.g. through javaScript) whether scrollbar is active? Problem: -------- I have a window in which there is a table. if there is much contents, a vertical scrollbar appears; if little content the scrollbar does not appear. My problem is that i would like to know whether the scrollbar is here or not; hence adjust the width of the table (and colums) accordingly! I have disabled horizontal scrollbar ("overflox-x: hidden" in CSS).Hello Nadim, This is entirely different from PHP and databases, so please pick the right list for these kind of questions. The matter can be handled with JavaScript (which is a client-side scripting language, while PHP and databases are server side). Please use google and you will find your solution. Regards, Filip de Waard