0 Replies Latest reply: Dec 4, 2012 5:43 AM by 959226 RSS

    enable checkbox when scroll reaches end of page

    959226
      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