+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Using Javascript with template Sitefinity

Using Javascript with template Sitefinity

1 posts, 0 answered
  1. Medy
    Medy avatar
    15 posts
    Registered:
    05 Oct 2015
    16 Oct 2015
    Link to this post

    Hello,

     I have some Javascript problem when I use Sitefinity : I am trying to migrate asp.net web application to Sitefinity application.

     So, I have created my own master page in sitefinity solution with a menu developed in Javascript (the same code which works in my asp.net application). After I create a page template in sitefinity based on this master page.  But when I preview my template, my menu javacript doesn't work !  :( :(

    First I use this tag :

    <script src="js/modernizr.js"><

     Then

     <script src='<%= ResolveClientUrl("~/js/modernizr.js") %>'

     And finally

            <sf:ResourceLinks ID="resourcesLinks" runat="server">

                                   <sf:ResourceFile Name="js/modernizr.js" />
          </sf:ResourceLinks>

     But doesn't work.

    Any idea ? Please help. Thanks.

     

1 posts, 0 answered