Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > js webpart not loading in designated zone, loading at top of page though View modes: 
User avatar
Member
Member
kmaier - 1/28/2014 9:57:08 AM
   
js webpart not loading in designated zone, loading at top of page though
I set up a Zone on the bottom of the page to load extra .js files at the end of the page, however it seems to load them at the top of the page regardless.

i have set this up in my master template:
<!--Load JS-->
<div style="clear:left;"><cc1:CMSWebPartZone ID="zoneJS" runat="server" /></div>
<!--End JS-->

i also added the javascript webpart to that zone but it does not load in that area.

any idea?

Thanks!

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/28/2014 9:18:04 PM
   
RE:js webpart not loading in designated zone, loading at top of page though
In that JavaScript webpart there are two areas you can add references to files. In both places you can specify where you want the file located. Take a look at those options and it should fix your problem. My guess is one is set to be at the Beginning of the page.

User avatar
Member
Member
kmaier - 1/29/2014 8:31:00 AM
   
RE:js webpart not loading in designated zone, loading at top of page though
nice, thank you!

it is spitting out some CDATA code and it appears to be commenting it out though.
<script type="text/javascript">
//<![CDATA[
<script type="text/javascript" src="/App_Themes/enerconind/scripts/eiJQScript.js" ></script>
//]]>
</script>