- This topic is empty.
August 1, 2012 at 11:41 am #39162badasafishParticipant
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: http://www.doble.co.uk/cgi-bin/aspPages/aspIncludes/quickLinksMenu-honda-offers-solo.asp
But when I call it within the current site it doesn’t work: http://www.doble.co.uk/cgi-bin/aspPages/workInProgress/dobleHome-honda-offers-slider.asp giving Error: TypeError: $(“#slider”).movingBoxes is not a function
Source File: http://www.doble.co.uk/cgi-bin/aspPages/workInProgress/dobleHome-honda-offers-slider.asp
Any ideas? Many thanksAugust 1, 2012 at 9:24 pm #107197MottieModerator
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 #107213badasafishParticipant
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