The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript MovingBoxes – can’t get integration into existing site to work

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #39162

    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


    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.


    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.