Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

enable checkbox when scroll reaches end of page

959226Dec 4 2012 — edited Dec 4 2012
Hi ,

I am using jdeveloper 11.1.1.6.0 .
I want the checkbox field to be enabled when the scroll bar is scrolled to the end of the page.
I tried using
<af:resource type="javascript">
alert("1");
adfPage.getElementsById("t1")[0].addEventListener("scroll", checkScrollHeight, false);
alert("2");
function checkScrollHeight(){
alert("3");
var agreementTextElement = document.getElementsById("t1")[0]
alert("4");
if ((agreementTextElement.scrollTop + agreementTextElement.offsetHeight) >= agreementTextElement.scrollHeight){
document.getElementsByName("button")[0].disabled = false;
}
}

The script is not runing . How do i do it ?

Please help

Edited by: 956223 on Dec 4, 2012 3:43 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2013
Added on Dec 4 2012
0 comments
266 views