January 30, 2017 at 16:24 #15345
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?
January 30, 2017 at 16:51 #15349
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;”
“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 ﬁles 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.”
January 31, 2017 at 21:32 #15402
I added a video installation guide here: http://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.
January 31, 2017 at 21:48 #15404
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?
January 31, 2017 at 23:56 #15409
I sent you an email.
February 2, 2017 at 20:30 #15439
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:
You can refer a local version of jQuery if you like – there is one in the “/Charts_v6/js” folder.
You must be logged in to reply to this topic.