Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    iFrame setting

    Troubleshooting
    3
    9
    1453
    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
      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

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

        C 1 Reply Last reply Reply Quote 0
        • C
          chrisvanlaar @justjim1220 last edited by

          @justjim1220 ??

          Sean 1 Reply Last reply Reply Quote 0
          • Sean
            Sean Module Developer @chrisvanlaar last edited by

            @chrisvanlaar
            @justjim1220 said,

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

            remove space around < and >

            justjim1220 1 Reply Last reply Reply Quote 0
            • justjim1220
              justjim1220 Module Developer @Sean 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!!! 😕

              Sean 1 Reply Last reply Reply Quote 0
              • Sean
                Sean Module Developer @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 <.

                justjim1220 2 Replies Last reply Reply Quote 0
                • justjim1220
                  justjim1220 Module Developer @Sean 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.

                  1 Reply Last reply Reply Quote 0
                  • justjim1220
                    justjim1220 Module Developer @Sean last edited by

                    @sean

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

                    Sean 1 Reply Last reply Reply Quote 0
                    • Sean
                      Sean Module Developer @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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy