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.

    Show webpage / iframe and reload

    Scheduled Pinned Locked Moved Requests
    14 Posts 4 Posters 10.6k Views 4 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @usafa43tsolo
      last edited by

      @usafa43tsolo did you try to apply this fix i suggested here a few months ago? https://github.com/TheBogueRat/MMM-iFrameReload/issues/2#issuecomment-291011351

      Please create a github issue if you need help, so I can keep track

      U 1 Reply Last reply Reply Quote 0
      • U Offline
        usafa43tsolo @strawberry 3.141
        last edited by

        @strawberry-3.141 That did it. Loads perfectly now. Thank you for pointing that out!

        1 Reply Last reply Reply Quote 1
        • foxF Offline
          fox
          last edited by fox

          @strawberry-3-141 you mean that fix?

          adding the line:

          iframe.setAttribute("timestamp", new Date().getTime());
          

          this results in:

          getDom: function() {
                          var iframe = document.createElement("IFRAME");
                          iframe.style = "border:0"
                          iframe.width = this.config.width;
                          iframe.height = this.config.height;
                          iframe.src =  this.config.url + new Date().getTime();
                          iframe.setAttribute("timestamp", new Date().getTime());
                          return iframe;
                  },
          
          

          but no result

          @usafa43tsolo could you share your .js file please?

          edit:
          i reinstalled it and then put the fix from @strawberry-3-141 from github.
          now i see in my browser (in the respective frame)
          Cannot GET /www.google.com

          Issues With MMM-WatchDog known?

          https://forum.magicmirror.builders/post/29827

          Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

          strawberry 3.141S 1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer @fox
            last edited by strawberry 3.141

            @fox did you try another webpage? I think it’s possible for a webpage to deny rendering in an iframe

            EDIT: See, when I’m testing this in a simple html file < iframe src="https://www.google.com">< /iframe> (without the spaces)

            I get this error Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

            Please create a github issue if you need help, so I can keep track

            1 Reply Last reply Reply Quote 0
            • foxF Offline
              fox
              last edited by

              @strawberry-3-141
              i saw something similar.

              But with your hint of deny i created a .htaccess in the folder of the called page with content

              
              Options -Indexes
              
              

              and now i can see the page !
              Thank you for your hint now we can proceed here.

              Issues With MMM-WatchDog known?

              https://forum.magicmirror.builders/post/29827

              Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

              1 Reply Last reply Reply Quote 1
              • 1
              • 2
              • 2 / 2
              • 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