SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Toronto
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Move Scrollbar to TextArea Cursor Position

    Is it possible to move the scrollbar in a TextArea component to the current cursor position?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,255
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)

    textarea scrollbar

    Hi yazan3k, welcome to the forums,
    I'm not sure I understand what you're asking. I believe that when a textarea's col and row values do not provide enough room for the text in it to fit, that's when the scrollbars appear. As more text is entered the previous entered text moves out of view so that the cursor position is always visible. If you move the scrollbar you can see the earlier text, but not the cursor position unless you click in the textarea changing the cursor position.
    Do you want it so the scrollbars are non-functional?
    Or are you using a textarea that has more text already in it than it's dimensions allow, and you want the cursor at the end of the text, thereby not showing the earlier text that's in it?
    Please post a snippet or link to help explain what you want.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •