Sign In   Register
  • I have a dialog object that contains a lot of data for disclosure statements. The user will need to scroll to the bottom of the document, at which point the 'disagree' and 'agree' options will be eligible to click. Does anyone know how to hook...
    I have a dialog object that contains a lot of data for disclosure statements. The user will need to scroll to the bottom of the document, at which point the 'disagree' and 'agree' options will be eligible to click. Does anyone know how to hook into the scroll event of the dialog box so that I can calculate when they scroll to the bottom of that dialog?

    I got this to work on a regular page when I could hook into the window.onscroll event as follows. This however does not work with a dialog object because I am not scrolling in the window anymore, but rather the dialog object.

    window.onscroll = function() {
    var totalPageHeight = document.body.scrollHeight;

    var scrollPoint = window.scrollY + window.innerHeight;

    // check if we hit the bottom of the page
    if(scrollPoint >= totalPageHeight){
    console.log("at the bottomz");
    data.isScrollBottom = true;
    }
    }
    More
    1. View Post
    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 ...