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.

All other Modules

Discuss all other Modules here.

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

Content Slider problem


Reply

5 Posts   1554 Views

Avatar
animasola

2 May 2010 at 1:00am Community Member, 121 Posts

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

3 May 2010 at 1:56pm Community Member, 133 Posts

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

3 May 2010 at 7:04pm Community Member, 121 Posts

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

4 May 2010 at 12:32am Community Member, 121 Posts

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

6 May 2010 at 5:45am Community Member, 121 Posts

up.

anyone? thanks :)