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.

General Questions /

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

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

conflicting jQuery - no conflict doesnt work


Go to End


2 Posts   2082 Views

Avatar
borriej

Community Member, 267 Posts

1 November 2011 at 12:07pm

Edited: 01/11/2011 12:08pm

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

Community Member, 30 Posts

1 November 2011 at 12:33pm

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