Installing v6

Forums SPJS Charts for SharePoint Installing v6

Viewing 5 reply threads
  • Author
    Posts
    • #15345
      Phil Grant
      Participant

      Hi,
      I’ve been working with version 3.4 for a few days and I could do what I wanted so I thought I’d download the latest version (6.1) because I wanted easier better filtering options.

      I’ve followed the instructions but I can’t get rid of this error dialog, I’ve tried editing the SPJSCharts_loader.html file to set …current_site to both true and false and moved the files to different locations without success.

      This maybe because I don’t correctly understand the hierarchy of the sites collection!

      My path looks like “Server_name/engineering_Site/Engineering_Subsite”

      initially I placed the folder in “Server_name/engineering_Site/SPJS/Charts_v6” document library.

      the path in the error dialog is always the correct location for the files it cannot load but it is sometimes the ….i18n.js file and sometimes the ….charts.min.js file.

      I’m currently unable to get it working, can the path be hard coded in the loader file?

      Regards,
      Phil

    • #15349
      Phil Grant
      Participant

      A little mor information for my issue above.

      Path of “SPJSCharts_loader.html” = http://”server_Name”/bn00xxxx_engineering/BN00xxxx_ElectricalIntegration/SPJS/Charts_v6/SPJSCharts_loader.html

      Path of CEWP page = http://”server_Name”/bn00xxxx_engineering/BN00xxxx_ElectricalIntegration/SitePages/V6ChartsDemo.aspx

      text in loader file = “var spjs_charts_scripts_in_current_site = true;”

      error =
      “The SPJS Charts Ioader failed to load /bn00xxxx_engineering/ BN00xxxx_Electricallntegration/SPJS/Charts_v6/js/spjs-charts.min.js

      The Loader is set up to read the files from a document Library in the current site. If this is NOT the correct location, you must change the variable “spjs_charts_scripts_in_current_site” in the “SPJSChartsLoade.html” file.”

    • #15402
      Alexander Bautz
      Keymaster

      Hi,
      I added a video installation guide here: https://spjsblog.com/2017/01/31/spjs-charts-for-sharepoint-video-installation-guide/

      Look at it and see if this is how you have set it up.

      Alexander

    • #15404
      Phil Grant
      Participant

      Alexander,

      As far as I can see I’m doing exactly as per the video, the only difference I can think of is the path to the loader file is not being found.

      The error message contains the correct path the the js file that it says it cannot find I know it’s not the same but version 3.4 works fine and finds the required files OK, is there something different in my company’s site configuration maybe that the loader doesn’t like?

      Regards,
      Phil

    • #15409
      Alexander Bautz
      Keymaster

      I sent you an email.

      Alexander

    • #15439
      Alexander Bautz
      Keymaster

      Solution if anyone has the same problem:

      This was caused by an old version of jQuery being loaded in the master page (v1.8.1), and it was fixed by updating the “SPJSCharts_loader.html” file – adding this line in the top:

      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

      You can refer a local version of jQuery if you like – there is one in the “/Charts_v6/js” folder.

      Alexander

Viewing 5 reply threads
  • You must be logged in to reply to this topic.