• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.2k 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.
  • S Offline
    strawberry 3.141 Project Sponsor Module Developer @usafa43tsolo
    last edited by Aug 8, 2017, 6:31 PM

    @usafa43tsolo which one of those 4?

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

    1 Reply Last reply Reply Quote 0
    • U Offline
      usafa43tsolo
      last edited by Aug 8, 2017, 6:39 PM

      https://forum.magicmirror.builders/topic/2637/mmm-iframereload-iframe-won-t-load/7

      S 1 Reply Last reply Aug 8, 2017, 8:46 PM Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer @usafa43tsolo
        last edited by Aug 8, 2017, 8:46 PM

        @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 Aug 9, 2017, 4:03 AM Reply Quote 0
        • U Offline
          usafa43tsolo @strawberry 3.141
          last edited by Aug 9, 2017, 4:03 AM

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

          1 Reply Last reply Reply Quote 1
          • F Offline
            fox
            last edited by fox Aug 21, 2017, 7:54 PM Aug 21, 2017, 4:59 PM

            @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

            S 1 Reply Last reply Aug 26, 2017, 11:58 AM Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer @fox
              last edited by strawberry 3.141 Aug 26, 2017, 12:06 PM Aug 26, 2017, 11:58 AM

              @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
              • F Offline
                fox
                last edited by Aug 26, 2017, 12:12 PM

                @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