Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Can you please provide additional info such as: where is "the other JavaScript file" located?; How are you referencing that file?; Commented May 10, 2014 at 13:53
  • The JavaScript file is located to the Style Library and I am loading that file by putting the <script> tag in the PlaceHolderAdditionalPageHead in the Page Layout. My tag is : <script type="text/javascript" language="javascript" src='<asp:Literal runat="server" Text="<%$SPUrl:~SiteCollection/Style Library/Scripts.js%>" />'></script> And I checked that the Scripts.js is loaded success fully on the page. @AmadeoGallardo Commented May 12, 2014 at 7:06
  • Is anything wrong in my way to load JavaScript from the Style Library? Commented May 12, 2014 at 8:51
  • Have you tried navigating to the URL where the script is located, and seeing if it loads properly? You should basically see all the code on the screen... Commented May 12, 2014 at 14:07