Problems install SPJS Charts setup

Home Forums SPJS Charts for SharePoint Problems install SPJS Charts setup

Viewing 1 reply thread
  • Author
    Posts
    • #13699
      Remi Steen
      Participant

        Hi!

        Just wanted to share a solution that worked for me when I tried to install SPJS Charts.

        I followed the user manual, but the setup gor stuck on “Loading charts, please wait”.

        I emailed Alex about the issue. He suggested that the script was loading before jquery was loaded.

        I tried this solution, and it worked Perfect!

        Added the following code to the file “spjs-charts.min.js”

        `(function defer() {
        if (window.jQuery) {
        //ALEX’S CODE
        } else {
        setTimeout(function () { defer() }, 50);
        }
        })();

      • #13738
        Remi Steen
        Participant

          The above “solution” turned out to not be so good.

          It only partly solved the issue.

          What i really had to do was to edit the masterpage so that jQuery was loaded at an earlier stage.

          I kept Alexanders code just the way he created it, and now i works smooth!

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.