Hello please help me I am having difficulites creating a rotating image in my homepage
I'm trying to use the jQuery Cycle Lite Plugin in SilverStripe but always get the error "$("#slideshow) is null
1. put jquery.cycle.lite.js and jquery-1.3.2.js in mysite/javascript
2. in Homepage_Controller I have put
function init() {
Requirements::javascript("../../../mysite/javascript/jquery-1.3.2.min.js");
Requirements::javascript("../../../mysite/javascript/jquery.cycle.lite.js");
parent::init();
3. in Homepage.ss I have included the following in the head of the document
<script type="text/javascript" src="mysite/javascript/jquery.cycle.lite.js"></script>
<script type="text/javascript" src="mysite/javascript/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#slideshow').cycle();
});
</script>
I have tried using the jQuery.noConflict (); code but this returns the error $ is not a function.
I have also used the following code :
jQuery(document).ready(function () {
jQuery('#slideshow').cycle();
});
but this returns the error
jQuery("#slideshow") is not a function,
I feel I have tried everything possible to get this to work but it will not, any help will be appreciated!