Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-15-2009, 04:13 PM   PM User | #1
icklechurch
New Coder

 
Join Date: Mar 2009
Posts: 96
Thanks: 11
Thanked 0 Times in 0 Posts
icklechurch is an unknown quantity at this point
scrollIntoView for a div, but not the main page

Hi,

I've got a text area with a vertical scrolldown bar. Using the following JS code the text area scrolls down as I'd expect:

document.getElementById(ID GOES HERE).scrollIntoView(true);

But the main are also scrolls down - is there any way to stop the main page scrolling down too?
icklechurch is offline   Reply With Quote
Old 06-15-2009, 04:52 PM   PM User | #2
icklechurch
New Coder

 
Join Date: Mar 2009
Posts: 96
Thanks: 11
Thanked 0 Times in 0 Posts
icklechurch is an unknown quantity at this point
Exclamation

*bump*

Does anyone know how to do this? I'm kinda desparate!
icklechurch is offline   Reply With Quote
Old 06-15-2009, 05:59 PM   PM User | #3
randomuser773
Banned

 
Join Date: Nov 2008
Location: not found
Posts: 284
Thanks: 0
Thanked 53 Times in 51 Posts
randomuser773 can only hope to improve
Quote:
Originally Posted by icklechurch View Post
*bump*

Does anyone know how to do this? I'm kinda desparate!
It isn't entirely clear what you want to do here. Are you talking about a <textarea> element, and if so what parameter are you passing to be able to scroll to a point within the text?
randomuser773 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:40 AM.


Advertisement
Log in to turn off these ads.