|
#1
|
|||
|
|||
|
Hey guys,
Got a question here that I'm hoping someone can answer. I have a <textarea> field in my document that is being fed data from a script as the page loads. The content of the textarea grows rather fast. As such, for the user to view the new data, they have to continually drag the scroll bar down the side to see the newest data as it appears. What I want to do is this- automatically keep the <textarea> scrolling to the bottom so all the new data is shown as it appears. Once the page loads, it will stop scrolling to the bottom of the <textarea> so that the person can now scroll up and down through the data at their leisure. I've spent some time looking around, and I saw some references to the 'scrollTop' object property, but I really don't know if thats right, let alone what to do with it. Any suggestions? Thanks for your time. -gabriel |
|
#2
|
|||
|
|||
|
Sorry gabe I did not see you post this earlier. I am out of town right now but when I get back in town I will post a solution for you. Really not that difficult I do not think depending on if I understand what you are saying or not.
__________________
md |
|
#3
|
|||
|
|||
|
Don't know if you've gotten back from vacation or not yet Doc, but I still haven't had any luck getting this to work. So if you are back, lets see if we can sit down some night and figure this out, or if you want to do it on your own, that's cool too.
|
|
#4
|
|||
|
|||
|
Gabe... I work out of state Monday - Wednesday but I will stay at work late today and get online and try to hook up with you to figure it out. I will IM you around 6pm or so.
__________________
md |
|
#5
|
|||
|
|||
|
After a considerable search, I have found an answer.
is it relatively simple. textareaname.scrollTop = textareaname.scrollHeight; hope this helps |
|
#6
|
|||
|
|||
|
Quote:
This sure did for me, thanks for posting it. ~ Ezuriah |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|