473,503 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Detect scrollbar arrowbutton clicks in mozilla.

Is there a trustworthy way to detect mouse clicks on the native
scrollbar arrow buttons (scrolluparrow and scrolldownarrow) in Mozilla?

Why?
Having a scrollable table i want to fetch more data from server and
append it as table rows if the scrolling is at the end position and i
press again on scrolldown. Without trying my intuition tells me that
onscroll isnt gonna work as there is nothing to scroll down at the end
of scrollable area.
Jul 23 '05 #1
4 2256
Do you really need the scrollbar to be present around ur table? Or you
could just use text links for allowing the user to scroll up or down.or
emulate scroll bars using layers.

Jul 23 '05 #2
c.**********@gmail.com wrote:
Do you really need the scrollbar to be present around ur table? Or you
could just use text links for allowing the user to scroll up or down.or
emulate scroll bars using layers.


Well I could emulate too (which I am familiar of), but if possible it
would be nicer to have the functionality with native scollbars.
Jul 23 '05 #3
Well, I could think of one possible solution and that is to have an
empty row always on the bottom of the table or some amount of blank
space at the bottom always _and_ disabling scrolling beyond the last
row. Say you have the table contents upto y=n and you have some blank
space B after it, a scroll to the bottom most portion with y=n+B will
definitely trigger an onScroll event. You could capture this event and
figure out if the user has scrolled after the last row, in which case
you could scroll up using window.scrollBy with an appropriate offset.

Jul 23 '05 #4
c.**********@gmail.com wrote:
Well, I could think of one possible solution and that is to have an
empty row always on the bottom of the table or some amount of blank
space at the bottom always _and_ disabling scrolling beyond the last
row. Say you have the table contents upto y=n and you have some blank
space B after it, a scroll to the bottom most portion with y=n+B will
definitely trigger an onScroll event. You could capture this event and
figure out if the user has scrolled after the last row, in which case
you could scroll up using window.scrollBy with an appropriate offset.


Thank you for this creative workaround idea.

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
13498
by: Mat | last post by:
How can I detect when a link has been clicked but the new page is still in the process of loading? The document.location.href property still displays the current location (understandably) not the...
5
20221
by: Z | last post by:
Hi, I have problem with auto-scrolling frames in IE (6.0 on Xp, but same happens with IE 5.5 on Win2k): If I set scrolling="auto" to frame, IE reserves space where vertical scrollbar normally...
1
23155
by: Marek Mänd | last post by:
<select multiple style="height:200px;"> <option>a <option>b </select> Why does Mozilla draw the vertical scrollbar to the SELECT html element? There is plenty of void room below two OPTIONs in...
4
13539
by: Rob T. | last post by:
I am using a div tag to make an element that contains some text. I have specified overflow: auto; in my stylesheet. If I use font-size/line-height to specify the font information I get a vertical...
3
17278
by: andrew.neale | last post by:
Hello, I have a div that has an overflow set to auto. I would like to know if the scrollbars are visible in javascript. Any help is appreciated. Thanks
4
4836
by: Ross | last post by:
I have been using the following script to return a scrollbar to the position it was in before the data was posted. It works in ie but not in firefox. Thanks, R. <script...
6
10920
by: Colin McGuire | last post by:
Hello experts, this is a repost but I have been (much) more clear. I want to know the position of the horizontal scrollbar in a textbox as a percentage - if the horizontal scrollbar is hard...
2
3408
by: NewGuy | last post by:
I'm new to scripting so this may be painful. I have created a JavaScript/HTML/CSS page. In the CSS code I set the colors for the scroll bars: * {scrollbar-arrow-color:#000} *...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7274
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.