1

I'm using a jQuery plugin called coin-slider. I've followed all of the directions in the documentation regarding its installation and usage. When I look at the Firebug console, it tells me that the coinslider() function is undefined.

A link to the site is located here. The site is in a different language, so try to look past that :)

3
  • My firebug showed "Unexpected value align parsing preserveAspectRatio attribute" as the error instead of that it was undefined? I have FF 6, Firebug 1.8.2. The preserveAspectRatio is within the iframe of the video. Not sure if removing that iframe will help or not? Commented Sep 5, 2011 at 14:22
  • @Benno: I'll try removing the iframe Commented Sep 5, 2011 at 14:23
  • @Benno: iFrame removed, error persists :( Commented Sep 5, 2011 at 14:24

1 Answer 1

2

You include jQuery twice (some code removed for brevity):

<!-- load jQuery and sripts -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="http://engineercreativity.com/samples/obsession/wp-content/themes/EngineerCreativity/js/coin-slider.js"></script>
<link rel="stylesheet" href="http://engineercreativity.com/samples/obsession/wp-content/themes/EngineerCreativity/css/coin-slider-styles.css" />

<script type="text/javascript">
/* SLIDEShOW */
$(document).ready(function() {
    $('#coin-slider').coinslider();
});
</script>

<!-- later: -->

<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js?ver=3.2.1'></script>

Not only is this last URL suspicious (which version did you want, again?!) but this final include overwrites the original jQuery instance (the one with coinslider added!).

Just include jQuery once, and make sure that you do it before you include the coinslider plugin.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.