Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > How do I reference javascript files from my masterpage. View modes: 
User avatar
Member
Member
vcarter - 4/10/2013 2:18:13 PM
   
How do I reference javascript files from my masterpage.
I have checked the forums and the only solution I found suggested that this:

<script language="javascript" src="~/cmsscripts/custom/default.js" type="text/javascript" ></script>

would work. I am using the standard portal engine and attempting to add some js reference to the head section of my masterpage. When I load the page I keep getting a "404 not found Error".

What am I missing here?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 4/10/2013 2:48:12 PM
   
RE:How do I reference javascript files from my masterpage.
/CMSPages/GetResource.ashx?scriptfile=~/CMSScripts/jquery/jquery-core.js

User avatar
Member
Member
vcarter - 4/10/2013 2:52:23 PM
   
RE:How do I reference javascript files from my masterpage.
Thank you very much...