wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Enabling a check box based on the position of scroll bar in a text area.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Enabling a check box based on the position of scroll bar in a text area.." Watch "Enabling a check box based on the position of scroll bar in a text area.." New topic
Author

Enabling a check box based on the position of scroll bar in a text area..

Supreet Malaviya
Greenhorn

Joined: Feb 07, 2008
Posts: 5
Hi,

I don't have much idea about javascript...
In one of my recent project requirements for a Web Application, I have to enable a check box based on whether a user has scrolled till end in the agreement text.
The agreement text is present in a textarea and the checkbox (by checking on which, the user agrees to the terms and conditions mentioned in the text area) is present outside the text area. The user should be able to check the checkbox only when he/she has scrolled till the end in the textarea.

Anyone has any idea as to how this thing can be done using javascript?

Thanks,
Supreet Malaviya.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
onscroll and scrollTop is probably what you are after.

Eric
Supreet Malaviya
Greenhorn

Joined: Feb 07, 2008
Posts: 5
Thanks for your reply Eric....

Supreet Malaviya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enabling a check box based on the position of scroll bar in a text area..
 
Similar Threads
Clearing fields
CSS- Force a new line
Force scrolling to the end of an IFRAME
Substitute table with div tag display
values undefined in arrays