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

      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

      justjim1220J 1 Reply Last reply Reply Quote 0
      • justjim1220J Offline
        justjim1220 Module Developer @chrisvanlaar
        last edited by yawns

        @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 Reply Quote 0
        • C Offline
          chrisvanlaar @justjim1220
          last edited by

          @justjim1220 ??

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @chrisvanlaar
            last edited by

            @chrisvanlaar
            @justjim1220 said,

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

            remove space around < and >

            justjim1220J 1 Reply Last reply Reply Quote 0
            • justjim1220J Offline
              justjim1220 Module Developer @Guest
              last edited by

              @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 Reply Quote 0
              • ? Offline
                A Former User @justjim1220
                last edited by

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

                justjim1220J 2 Replies Last reply Reply Quote 0
                • justjim1220J Offline
                  justjim1220 Module Developer @Guest
                  last edited by

                  @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
                  • justjim1220J Offline
                    justjim1220 Module Developer @Guest
                    last edited by

                    @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 Reply Quote 0
                    • ? Offline
                      A Former User @justjim1220
                      last edited by

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