• 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.

iFrame setting

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 3 Posters 2.2k Views 3 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.
  • C Offline
    chrisvanlaar
    last edited by Aug 6, 2018, 11:17 AM

    Hello,

    I have in the module "Hello World"a fixed webpage, but it shows on the whole mirror.
    What code must i have so that it shows in a smaller fixed frame?

    Thanks Chris

    J 1 Reply Last reply Aug 7, 2018, 3:27 AM Reply Quote 0
    • J Offline
      justjim1220 Module Developer @chrisvanlaar
      last edited by yawns Aug 7, 2018, 9:55 AM Aug 7, 2018, 3:27 AM

      @chrisvanlaar

      Try something like this…

      < iframe src=" " name="myIframe" style="border:none;height:600px;width:500px;"></iframe>
      

      Hope this helps!

      edit by yawns

      "Life's Too Short To Dance With Ugly People"
      Jim Hallock - 1995

      C 1 Reply Last reply Aug 7, 2018, 6:12 AM Reply Quote 0
      • C Offline
        chrisvanlaar @justjim1220
        last edited by Aug 7, 2018, 6:12 AM

        @justjim1220 ??

        ? 1 Reply Last reply Aug 7, 2018, 7:26 AM Reply Quote 0
        • ? Offline
          A Former User @chrisvanlaar
          last edited by Aug 7, 2018, 7:26 AM

          @chrisvanlaar
          @justjim1220 said,

          < iframe src=" " name="myIframe" style="border:none;height:600px;width:500px;" >;< /iframe >
          

          remove space around < and >

          J 1 Reply Last reply Aug 7, 2018, 7:40 AM Reply Quote 0
          • J Offline
            justjim1220 Module Developer @Guest
            last edited by Aug 7, 2018, 7:40 AM

            @sean

            I didn’t have spaces. that is weird that it pasted that way.

            had a storm here and literally lost connection, electricity , and everything just moments after clicking submit. just came back on.

            That code is being used in a module I’m working on, and that is not how it is typed in!!! :confused_face:

            "Life's Too Short To Dance With Ugly People"
            Jim Hallock - 1995

            ? 1 Reply Last reply Aug 7, 2018, 7:54 AM Reply Quote 0
            • ? Offline
              A Former User @justjim1220
              last edited by Aug 7, 2018, 7:54 AM

              @justjim1220 Don’t worry. this nodeBB forum software seems not to be able to parse HTML entities like <and >. so it might be disappeared. to display <, ppl need to add extra space around <.

              J 2 Replies Last reply Aug 7, 2018, 8:05 AM Reply Quote 0
              • J Offline
                justjim1220 Module Developer @Guest
                last edited by Aug 7, 2018, 8:05 AM

                @sean the first time i tried, it didn’t even show up that I had typed anything.

                I was actually gonna take a screen shot of it if this didn’t post.

                But, loss of electricity, tends to put a damper on things like this.

                "Life's Too Short To Dance With Ugly People"
                Jim Hallock - 1995

                1 Reply Last reply Reply Quote 0
                • J Offline
                  justjim1220 Module Developer @Guest
                  last edited by Aug 7, 2018, 8:06 AM

                  @sean

                  Any chance you know the best way to convert a program from HTML, CSS, & jQuery to a module for MM2??

                  "Life's Too Short To Dance With Ugly People"
                  Jim Hallock - 1995

                  ? 1 Reply Last reply Aug 7, 2018, 8:08 AM Reply Quote 0
                  • ? Offline
                    A Former User @justjim1220
                    last edited by Aug 7, 2018, 8:08 AM

                    @justjim1220 I think it could be case-by-case.
                    If the result you expect is just simply showing some contents, iFrame is enough.
                    But, more than that, it depends on what you expect.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    1 / 1
                    • First post
                      1/9
                      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