Give help. Get help.

  • # August 1, 2012 at 11:41 am

    Hi all, I’ve been playing with the excellent MovingBoxes script and it seems to do exactly what I’m after, unfortunately I cannot get it to work within my current site. The MovingBoxessection is to reside on a SSI that is included in the page.

    The page to be included works OK when browsed directly:

    But when I call it within the current site it doesn’t work: giving Error: TypeError: $(“#slider”).movingBoxes is not a function
    Source File:
    Line: 701

    Whilst I realise the javascript and CSS calls in the SSI file should be in the head of the containing document, I don’t think this is the problem since I have also tried moving all the pertinent code into the head and get the same result.

    Any ideas? Many thanks

    # August 1, 2012 at 9:24 pm

    It looks like jQuery 1.7.2 is being loaded twice. So the first thing to try is removing the jquery that is being loaded immediately before movingboxes.js (line 679) and see if that fixes the problem. If not then I’ll look at it again.

    # August 2, 2012 at 4:19 am

    Good spot! I’ve changed the jQuery includes to be conditional, so that they don’t load more than once and that has fixed the problem!

    Many thanks, and if this helps anyone else here is the conditional include code that I used (but didn’t write):

    Many thanks Mottie x

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.