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

Adding jQuery

Scheduled Pinned Locked Moved Solved Requests
11 Posts 5 Posters 7.7k Views 5 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
    snimax
    last edited by Oct 28, 2016, 5:20 PM

    Okey thank you very much!

    1 Reply Last reply Reply Quote 0
    • E Offline
      E3V3A
      last edited by Feb 19, 2018, 2:49 PM

      @strawberry-3-141

      It seem that getscripts doesn’t work anymore, at least not as I expected. This seem to be because even though MM finds the script, we get hit by the security error:

      The resource from “http://192.168.1.2:8080/node_modules/jquery-ui-dist/jquery-ui.css” was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).
      

      Any idea how to get past this?

      "Everything I do (here) is for free – altruism is the way!"
      MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

      N 1 Reply Last reply Feb 19, 2018, 6:16 PM Reply Quote 0
      • N Offline
        ninjabreadman @E3V3A
        last edited by Feb 19, 2018, 6:16 PM

        @E3V3A When I look up the error, I find this thread which says:

        Check if the file path is correct and the file exists - in my case that was the issue - as I fixed it, the error disappeared.

        I suspect that jQuery is installed in your module’s node_modules folder, and not at the root of your MagicMirror (I may however be wrong).

        In which case I would expect jQuery to be installed at “http://192.168.1.2:8080/modules/MMM-Tabulator/node_modules/jquery-ui-dist/jquery-ui.css”. This is why in your thread here you needed to use this.file() so that it created a relative path.

        Problem with config or JavaScript? Copy/paste it into JSHint.
        Check out the detailed walkthroughs on install, config, modules, etc.

        E 1 Reply Last reply Feb 19, 2018, 8:27 PM Reply Quote 0
        • E Offline
          E3V3A @ninjabreadman
          last edited by Feb 19, 2018, 8:27 PM

          @ninjabreadman Oh man, Excellent! I wish I’d had seen that a week ago…

          Anyway, I’ve solved it since, but got another issue with getting the Tabulator code to actually do something. No errors shown, unfortunately.

          PS. Is there a way to close a thread or mark it as solved??

          "Everything I do (here) is for free – altruism is the way!"
          MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

          Y 1 Reply Last reply Feb 19, 2018, 8:55 PM Reply Quote 0
          • Y Offline
            yawns Moderator @E3V3A
            last edited by Feb 19, 2018, 8:55 PM

            @E3V3A
            Yes, at the end of the thread there is a button with a gear symbol. Tap/click it and select Mark as question, then tap/click a second time and select Mark as resolved

            E 1 Reply Last reply Feb 19, 2018, 10:23 PM Reply Quote 0
            • E Offline
              E3V3A @yawns
              last edited by Feb 19, 2018, 10:23 PM

              @yawns I must be blind!?

              0_1519078979009_firefox_2018-02-20_00-22-00.png

              "Everything I do (here) is for free – altruism is the way!"
              MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

              Y 1 Reply Last reply Feb 20, 2018, 5:36 AM Reply Quote 0
              • Y Offline
                yawns Moderator @E3V3A
                last edited by Feb 20, 2018, 5:36 AM

                @E3V3A
                No, I guess it’s my mistake. As a moderator I have these options. And I think the thread starter has the option as well.

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