Scroll a table in a div

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cool2005

    Scroll a table in a div

    I have a table in a div with "overflow=auto" .
    I tried to scroll a given tr, say trObj, into viewable area using

    trObj.scrollInt oView(true);

    or
    trObj.scrollInt oView(false);

    none of them worked.

    How can I do it?

    thanks

  • kaeli

    #2
    Re: Scroll a table in a div

    In article <1116881674.491 652.153170@o13g 2000cwo.googleg roups.com>,
    coolshare@yahoo .com enlightened us with...[color=blue]
    > I have a table in a div with "overflow=auto" .
    > I tried to scroll a given tr, say trObj, into viewable area using
    >
    > trObj.scrollInt oView(true);
    >
    > or
    > trObj.scrollInt oView(false);
    >
    > none of them worked.
    >
    > How can I do it?
    >[/color]

    You realize this is not standard and may be MSIE only, right?
    That said, how are you getting trObj? Are you sure it references an object?

    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

    iew.asp

    --
    --
    ~kaeli~
    Can you be a closet claustrophobic?



    Comment

    • DU

      #3
      Re: Scroll a table in a div

      kaeli wrote:
      [color=blue]
      > You realize this is not standard and may be MSIE only, right?[/color]

      Mozilla 1.x, Firefox 1.x and NS 7+ support scrollIntoView.

      DU
      --
      The site said to use Internet Explorer 5 or better... so I switched to
      Firefox 1.0.4 :)

      Comment

      Working...