MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Automatic scrolling at IFrame Module

    Development
    2
    6
    391
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Hendrik9203 last edited by

      Hey everybody,

      i have a little Problem. I’m new to javaScript, CSS and HTML. Now i have to create a MagicMirror and like to scroll a Website in a IFrame automatically from Top to bottom and back. Is there any possibility to realize this?

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @Hendrik9203 last edited by

        @Hendrik9203 what do you mean by ‘automatically scroll’?

        some sites will detect the size of the iframe and resize themselves…
        some do not, and assume a large size that would require scrolling to see it all…

        scrolling requires some input device mechanism… mouse or keyboard
        (or simulation of those)

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • H
          Hendrik9203 last edited by

          I think a bit more information are required. So i use the Modul MM-iFrame to display a website. These Website are to long to show in the iFrame and i like to scroll the Website automatically to the end and then startup again at the top. Is there any hint to make this work?

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @Hendrik9203 last edited by

            @Hendrik9203 maybe something like this

            https://github.com/AgP42/MMM-SmartWebDisplay

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • H
              Hendrik9203 last edited by

              But there also no posibility to scroll the Website automatically. There are only the posibility to scroll different URLs.

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @Hendrik9203 last edited by

                @Hendrik9203 ah, u want to scroll the page IN the iframe…

                I don’t know anything that does it already

                here is some technical info about ‘HOW’ to do it…

                https://www.dyn-web.com/tutorials/iframes/postmessage/

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy