10441 Posts in 2220 Topics by 1717 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1365 Views |
-
Content Slider problem

2 May 2010 at 1:00am
Hey guys, good day!
I recently tried to integrate this neat jQuery slider (http://cssglobe.com/lab/easyslider1.7/01.html) into my silverstripe site but had no luck.
I then uploaded a basic html page which referenced the same Javascript files, images and css files as my silverstripe site and it works. So I think the problem is regarding conflicts but I can't point which. Can someone help me?
I posted them both online so you can see that one (plain HTML) is working while the implementation (same reference, same code) in Silverstripe doesn't work:
http://antique.inting.org/stripe/slider.html (Working plain HTML)
http://antique.inting.org/stripe/ (not working Silverstripe Implementation)Thanks!
-
Re: Content Slider problem

3 May 2010 at 1:56pm
Hi,
You're getting a javscript error due to jQuery.noConflict();
Change your javascript to the following:
<script type="text/javascript">
;(function($) {
$(document).ready(function(){
$("#Slider").easySlider({
auto: true,
continuous: true
});
})
})(jQuery);
</script> -
Re: Content Slider problem

3 May 2010 at 7:04pm
thanks man! worked well
although sometimes you have to refresh it to get it working, it's kinda minor but does anyone know why?
-
Re: Content Slider problem

4 May 2010 at 12:32am
Ok now I have anther problem. It seems that the slider does not load properly and it only loads sometimes. Is it perhaps because the JQuery library does not load properly at times? It most usually occurs in Google Chrome.
Can anyone help?
here is the site btw: http://antique.inting.org/stripe
| 1365 Views | ||
|
Page:
1
|
Go to Top |


