Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Content Slider problem

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1526 Views
  • animasola
    Avatar
    Community Member
    121 Posts

    Content Slider problem Link to this post

    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!

  • ampedup
    Avatar
    Community Member
    133 Posts

    Re: Content Slider problem Link to this post

    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>

  • animasola
    Avatar
    Community Member
    121 Posts

    Re: Content Slider problem Link to this post

    thanks man! worked well

    although sometimes you have to refresh it to get it working, it's kinda minor but does anyone know why?

  • animasola
    Avatar
    Community Member
    121 Posts

    Re: Content Slider problem Link to this post

    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

  • animasola
    Avatar
    Community Member
    121 Posts

    Re: Content Slider problem Link to this post

    up.

    anyone? thanks

    1526 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.