Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Content Slider problem


Go to End


5 Posts   2095 Views

Avatar
animasola

Community Member, 121 Posts

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! :)

Avatar
3dgoo

Community Member, 135 Posts

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>

Avatar
animasola

Community Member, 121 Posts

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?

Avatar
animasola

Community Member, 121 Posts

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

Avatar
animasola

Community Member, 121 Posts

6 May 2010 at 5:45am

up.

anyone? thanks :)