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.

General Questions

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

conflicting jQuery - no conflict doesnt work


Reply

2 Posts   989 Views

Avatar
borriej

1 November 2011 at 12:07pm (Last edited: 1 November 2011 12:08pm), Community Member, 267 Posts

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!

Avatar
Zauberfisch

1 November 2011 at 12:33pm Community Member, 30 Posts

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