More in this section
Forums / Bugs & Issues / Embedding JS

Embedding JS

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Stepahnie
    Stepahnie avatar
    18 posts
    Registered:
    19 May 2016
    08 Jul 2016
    Link to this post

    How do you embed javascript into a theme (master file). I have inputted into the master file:

    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %>
     
    <body>
        <sf:ResourceLinks ID="ResourceLinks1" runat="server"><br><br>       
    <sf:ResourceFile Name="ExternalResources.Scripts.Library.js" AssemblyInfo="ExternalResources.Program, ExternalResources" Static="true">
    </sf:ResourceFile>
        </sf:ResourceLinks>
    </body>

    And I changed the java script built action to embedded resource. However, it is still not working. I do not have an assembyinfo.cs and I don't have the sitefinity web application set up. Is there another way to do it or does someone know how to access/create the file without using sitefinity web application. 

  2. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    13 Jul 2016
    Link to this post
    Hey Stephanie,

    You need to change the AssemblyInfo ="..." info to match the correct name of the class you're embedding the js file into. 

    You can also refer to the .JS file as a non embedded resource file, you can find more info here.
2 posts, 0 answered