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

Detect scrollbar arrowbutton clicks in mozilla.

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


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

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

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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.