Jump to:

23367 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » conflicting jQuery - no conflict doesnt work

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 943 Views
  • borriej
    Avatar
    Community Member
    267 Posts

    conflicting jQuery - no conflict doesnt work Link to this post

    Hi,

    See http://www.jscodes.com/codes/code08/

    downloaded the jquery and put it in my site/templates

    see http://grefkens.robvaneckdesign.nl

    what is going wrong?

    In a single html everything works, but within Silverstripe the 'featured item slider' wont do anything.

    I've deteled all jquery's and tested it many times in different ways..

    Currently using this at the bottom of Homepage.ss

    <script type="text/javascript">

    jQuery.noConflict();
    jQuery(document).ready(function($){

       jQuery(document).ready(function() {
             jQuery["featureList"](
                jQuery("#tabs li a"),
                jQuery("#output li"),
                {start_item:1}
             );
       });
    });
    </script>

    but still things go wrong..

    please help!

  • Zauberfisch
    Avatar
    Community Member
    30 Posts

    Re: conflicting jQuery - no conflict doesnt work Link to this post

    blubb

    when you look at http://paste2.org/p/1750558 you will see that you include the featureList javascript file (which seems to be a jquery plugin) BEFORE you include jquery.
    of course this plugin will not work

    try to change your code as showed in the paste, remove red lines, add green lines

    943 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.