Sign In   Register
  • I was able to hook onto the window scrolling event and detect a scroll to the bottom of the page with the following code. However, I need to detect a scroll in a dialog object, and I am unable to hook onto the scroll event in the dialog. I think I'll post a new question for this issue, though...
    I was able to hook onto the window scrolling event and detect a scroll to the bottom of the page with the following code. However, I need to detect a scroll in a dialog object, and I am unable to hook onto the scroll event in the dialog. I think I'll post a new question for this issue, though I am guessing this might not have an straight forward solution.

    window.onscroll = function() {
    console.log("scrolling.....");
    // @var int totalPageHeight
    var totalPageHeight = document.body.scrollHeight;
    console.log("totalPageHeight = " + totalPageHeight);

    // @var int scrollPoint
    var scrollPoint = window.scrollY + window.innerHeight;
    console.log("scrollPoint = " + scrollPoint);

    // check if we hit the bottom of the page
    if(scrollPoint >= totalPageHeight){
    console.log("at the bottomz");
    data.isScrollBottom = true;
    }
    }
    More
    1. View Comment
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
Unable to load tooltip content.

Not a member?

Register to ask a question and access to more content.

Join now

Recent Q&A

Bold & Italics formatting not working with pri ...
Hi there, We are having issues with the Bold & Italics formatting not bei ...

Looking for something else?

You can request access to:

  • Courses
  • Full Release Notes
  • Product Downloads
  • SDK

Request access

Leader Board

1
Mark Murray
User's Points: 1376
2
Lin Vanoevelen
User's Points: 1046
3
Julio Berrueco Pinto
User's Points: 715
4
Matthew White
User's Points: 398
5
Chad Thomas
User's Points: 300

Announcements

Summary of Vulnerability CVE-2022-22965 is a reported critical vulnerability targeting the Spring Ja...

Website tips

Online eLearning videos now available

The Knowledge team is excited to announce that all online eLearning content has now been consolidated into the Journey Platform website to provide a more streamlined user experience.  

Read more ...