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

Problem reloading data

Scheduled Pinned Locked Moved Solved Troubleshooting
9 Posts 2 Posters 326 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 Away
    sdetweil @matahideveugle
    last edited by sdetweil Apr 27, 2022, 7:10 PM Apr 27, 2022, 7:03 PM

    @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 Apr 27, 2022, 7:07 PM Reply Quote 0
    • M Offline
      matahideveugle @sdetweil
      last edited by Apr 27, 2022, 7:07 PM

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

      1 Reply Last reply Reply Quote 0
      • M Offline
        matahideveugle @sdetweil
        last edited by Apr 27, 2022, 9:11 PM

        @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 Apr 27, 2022, 11:18 PM Reply Quote 0
        • S Away
          sdetweil @matahideveugle
          last edited by Apr 27, 2022, 11:18 PM

          @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 May 2, 2022, 6:58 PM Reply Quote 0
          • M Offline
            matahideveugle @sdetweil
            last edited by May 2, 2022, 6:58 PM

            @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 May 2, 2022, 7:01 PM Reply Quote 1
            • S Away
              sdetweil @matahideveugle
              last edited by May 2, 2022, 7:01 PM

              @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
              1 / 1
              • First post
                8/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