Sitefinity : Admin can't access JavaScript folder from Master Pages
Hi,
I have a page that uses Master Page in the App_Master folder. When I access this page anonymously, it's working well. However, if I try to access the same page after logging-in as an Admin, the jQuery in the master page isn't executing. As a result, all the images in the page are screwed up.
What am I doing wrong? The javascript folder is in the application root.
When anonymous user can access it, why can't admin (who has more power) access it?
Hello Preetham,
Please try the following which should work fine no matter of the user you use
1. In your master page register Telerik.Sitefinity.Web.UI.PublicControls
<%@ Register TagPrefix="sf" Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.PublicControls"%>
<
sf:JavaScriptEmbedControl
runat
=
"server"
ID
=
"test111"
ScriptEmbedPosition
=
"BeforeBodyEndTag"
Url
=
"Sitefinity/WebsiteTemplates/PageTemplates/App_Themes/Test/js/script.js"
></
sf:JavaScriptEmbedControl
>
function
test()
alert(
"jQuery alert"
);
;
<script type=
"text/javascript"
>
$(document).ready(function ()
test();
);
</script>