Using Javascript with template Sitefinity

Posted by Community Admin on 03-Aug-2018 14:03

Using Javascript with template Sitefinity

All Replies

Posted by Community Admin on 16-Oct-2015 00:00

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.

 

This thread is closed