Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex Jardine 5 posts 25 karma points
    Sep 26, 2012 @ 20:29
    Alex Jardine
    0

    Page rendering from one template but not another

    Hi guys,

    Dont really know how to communicate this issue but here goes;

    I'm looking for some help with a problem I'm having with my page rendering correctly from one template but similar code not rendering correctly in another.

    I have a contact page that contains a google map, the map renders fine in the static version of the page but not in the flexslider version.

    Code that renders page correctly (this is a static version of the page):

    The Map1 razor script only contains javascript.

    <%@ Master Language="C#" MasterPageFile="~/masterpages/Master.master" AutoEventWireup="true" %>  

    <asp:Content ContentPlaceHolderID="MasterContentPlaceHolder" runat="server">
      <umbraco:Macro Alias="ContactContent" runat="server" />
    </asp:Content>
      
    <asp:Content ContentPlaceHolderId="scripts" runat="server">
      <umbraco:Macro Alias="Map1" runat="server" />
    </asp:Content>

    -----------------------------------

    Code that renders page ok but is missing the google map (this is the flexslider version):

    mapFlexslider.js contains the same javascript as the macro above

             <li>
                <umbraco:Macro Alias="ContactContent" runat="server" />
             </li>
          </ul>         
        </div>
    </div>

    <!-- START SCRIPTS -->
    <script src="../scripts/jquery-1.7.1.js"></script>
    <script src="../scripts/load_content.js"></script>
    <script src="../scripts/jquery.flexslider.js"></script>
    <script src="../scripts/imagesloaded.js"></script>
    <script src="../scripts/jquery.scrollTo.js"></script>
    <script src="../scripts/plugins.js"></script>
    <script src="../scripts/script.js"></script>
    <!-- FancyBox -->
    <script src="../scripts/fancybox/js/fancybox/jquery.fancybox.js"></script>
    <script src="../scripts/fancybox/js/fancybox/jquery.fancybox-buttons.js"></script>
    <script src="../scripts/fancybox/js/fancybox/jquery.fancybox-thumbs.js"></script>
    <script src="../scripts/mapFlexslider.js"></script>

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 28, 2012 @ 22:48
    Jan Skovgaard
    0

    Hi Alex

    Do you receive any JavaScript errors when viewing the browser console log? I suspect some references are missing perhaps.

    Looking forward to hearing from you.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft