www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] How to set location in textarea

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    Jackson MS
    Posts
    373

    resolved [RESOLVED] How to set location in textarea

    I have 21 lines in a textarea visible and there are over a thousand lines in it. If my script finds something for the user in line 520, is there a way to set the scrollbar so only lines 510-530 are initially visible?

    TIA

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,373

    Question

    Quote Originally Posted by wbport View Post
    I have 21 lines in a textarea visible and there are over a thousand lines in it. If my script finds something for the user in line 520, is there a way to set the scrollbar so only lines 510-530 are initially visible?

    TIA
    AFAIK this is not possible.

    However, why not just display the lines of interest to the user rather than all 1000?
    If you know where they are, why not just display those of interest?

  3. #3
    Join Date
    Sep 2008
    Location
    Jackson MS
    Posts
    373
    I was hoping to avoid that and let the user see the lines before or after as needed. The thought just came to me I could open a new window, highlight a line, and scroll to it. Will need to experiment on that one first though.

    Thanks for looking at it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles