Copied to clipboard

Flag this post as spam?

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


  • Chris McVittie 103 posts 75 karma points
    Nov 08, 2009 @ 16:55
    Chris McVittie
    0

    designit gallery package - no js being output

    hi, 

    i just tried the designit gallery package, all very smooth, until the lightboxing tries to happen.  I'm getting no js output on my source for the gallery... i've got head id=head1 runat=server as you would expect, but am getting no further - any ideas? 

    thumbnails are rendered and the css line is output.  i'm using the compression module as well if that makes a difference?

     

    thanks, 

    chris

  • Shaun 248 posts 475 karma points
    Dec 17, 2009 @ 17:37
    Shaun
    0

    I'm getting the same thing. i'm wondering if its down to a clash of javascript. i'm also using Sifr and not sure if thats using jquery or the other one

  • René Pjengaard 118 posts 702 karma points c-trib
    Jan 10, 2010 @ 11:25
    René Pjengaard
    0

    Hi,

    i had the same problem. Then i looked at the code from http://umbraco.designit.com/gallery-package and realised that the template is missing some code.

    1. Plug-in for lightbox
      <script src="/scripts/Designit.Gallery/jquery.lightbox-0.5.js" type="text/javascript"></script>
    2. The code to activate the lightbox plugin
      <script type="text/javascript"> 
      $(function() {
        $('#diGallery a').lightBox();
      });
      </script>

    Hope this will help you (if you havn´t allready found out ;-))

     

     

  • David Lerche 4 posts 22 karma points
    Jun 27, 2010 @ 00:26
    David Lerche
    0

    In case anyone else is as thick headed as me:)
    This is what worked for me:

    <%@ Master Language="C#" MasterPageFile="/masterpages/Master.master" AutoEventWireup="true" %>
    <asp:content ContentPlaceHolderId="BodyContent" runat="server">
    <script src="/scripts/Designit.Gallery/jquery.lightbox-05.pack.js" type="text/javascript"></script> 
    <script src="/scripts/Designit.Gallery/jquery.lightbox-0.5.js" type="text/javascript"></script> 
    <umbraco:Macro folderId="[#Gallery]" ThumbWidth="100" ThumbHeight="100" LightBoxWidth="600" LightBoxHeight="600" Alias="Designit.Gallery" runat="server"></umbraco:Macro>
    <script type="text/javascript"> 
    $(function() {
      $('#diGallery a').lightBox();
    });
    </script> 
    </asp:content>

     

    I found the final solution here:

    http://umbgallery.codeplex.com/Thread/View.aspx?ThreadId=63367

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Oct 06, 2010 @ 14:56
    Robert Foster
    0

    A full solution to this problem is to make sure you include the <form runat="server"></form> tags in your template.  That way the code will be able to render all the necessary javascript for you.

Please Sign in or register to post replies

Write your reply to:

Draft