1

When linking to jsLink file, with console.log - is not loaded. this is the script for example:

<script>
  console.log("loaded");
 </script>

I use it on the list view webpart as "jslink" property (I mean the address of it /SiteAssets/specialItemOrder/colorize.js)

Why isn't it loaded?

5
  • try to reference JSLInk as - ~SiteAssets/specialItemOrder/colorize.js. Refer this - sharepoint.stackexchange.com/questions/203041/… Commented Feb 26, 2018 at 15:04
  • Also there is no need to include <script></script> tab in your colorize.js file. Just write console.log and see ... Commented Feb 26, 2018 at 15:05
  • 1
    ~SiteAssets is not a valid token. I'd suggest using ~sitecollection, or ~site here. So ~site/SiteAssets/specialItemOrder/colorize.js
    – Mike
    Commented Feb 26, 2018 at 15:09
  • @Mike Thanks for correcting. You are right ....... Commented Feb 26, 2018 at 17:54
  • Use the Chrome Browser Exstension: Cisar, it is a WYSIWIG editor and does all the JSLink management for you Commented Feb 27, 2018 at 15:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.