Detect scrollbar arrowbutton clicks in mozilla.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marek Mänd

    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.
  • c.anandkumar@gmail.com

    #2
    Re: Detect scrollbar arrowbutton clicks in mozilla.

    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.

    Comment

    • Marek Mänd

      #3
      Re: Detect scrollbar arrowbutton clicks in mozilla.

      c.anandkumar@gm ail.com wrote:
      [color=blue]
      > 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.[/color]

      Well I could emulate too (which I am familiar of), but if possible it
      would be nicer to have the functionality with native scollbars.

      Comment

      • c.anandkumar@gmail.com

        #4
        Re: Detect scrollbar arrowbutton clicks in mozilla.

        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.

        Comment

        • Marek Mänd

          #5
          Re: Detect scrollbar arrowbutton clicks in mozilla.

          c.anandkumar@gm ail.com wrote:[color=blue]
          > 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.[/color]

          Thank you for this creative workaround idea.

          Comment

          Working...