This has been driving me crazy. I keep receiving “TypeError: $(“.yoxview”).yoxview is not a function”.
Any clue what is wrong with my formatting or logic?
<script type="text/javascript">
$(document).ready(function () {
$('.yoxview').yoxview({
skin: "top_menu",
dataUrl: "http://www.youtube.com/results?search_query=decemberists&aq=f",
thumbnailsOptions: {
setTitles: true,
thumbnailsClass: "thumbnail"
}
});
});
</script>
Most likely the
.yoxviewplugin is not properly loaded when you call it.Make sure that you are including the appropriate script before you attempt to call it, for example: