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.

    Problem reloading data

    Scheduled Pinned Locked Moved Solved Troubleshooting
    9 Posts 2 Posters 347 Views 2 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
      sdetweil @matahideveugle
      last edited by sdetweil

      @matahideveugle where to save? in a module instance variable

      defaults:{

      },
      wrapper: null,
      …

      if (this.wrapper == null){
      create it
      initialize it set classes etc)
      }
      create and append elements for each item, (but empty, no inner.html or inner text)
      maybe display:none for style

      then when need to change
      create and append iframe ,

      find elements for text , altho you could have saved them too , I would save them, then don’t have to lookup and dont impact browser performance,
      set inner…

      when its time to display iframe/insert(addAfter/Before), add source, make visible …

      all kinds of approaches…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 2 Replies Last reply Reply Quote 0
      • M Offline
        matahideveugle @sdetweil
        last edited by

        @sdetweil Thank you, I will try to work it out!

        1 Reply Last reply Reply Quote 0
        • M Offline
          matahideveugle @sdetweil
          last edited by

          @sdetweil I’m not sure if I did something wrong but it still seems like the entire page is reloaded even though I saved the div with the video. I don’t know if I explained well but I need the video to stay and play the entire time.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @matahideveugle
            last edited by

            @matahideveugle I understand…

            can you share your GitHub repo link, via email same userid at gmail

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              matahideveugle @sdetweil
              last edited by

              @sdetweil Hello, I resolved the problem by using Ajax. I had tried using Ajax and JQuery but these 2 weren’t working until I found out I had to download the source and add them to the script section. Thank you for helping !

              S 1 Reply Last reply Reply Quote 1
              • S Offline
                sdetweil @matahideveugle
                last edited by

                @matahideveugle cool. glad u got it

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                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