MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Automatic scrolling at IFrame Module

    Scheduled Pinned Locked Moved Development
    6 Posts 2 Posters 1.1k Views 2 Watching
    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 Offline
      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 Offline
        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

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • H Offline
          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 Offline
            sdetweil @Hendrik9203
            last edited by

            @Hendrik9203 maybe something like this

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

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • H Offline
              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 Offline
                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

                How to add modules

                learning how to use browser developers window for css changes

                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 Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy