Problems install SPJS Charts setup
- This topic has 1 reply, 1 voice, and was last updated 10 years, 1 month ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › SPJS Charts for SharePoint › Problems install SPJS Charts setup
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);
}
})();
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!