21288 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 586 Views |
-
conflicting jQuery - no conflict doesnt work

1 November 2011 at 12:07pm Last edited: 1 November 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!
-
Re: conflicting jQuery - no conflict doesnt work

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 worktry to change your code as showed in the paste, remove red lines, add green lines
| 586 Views | ||
|
Page:
1
|
Go to Top |

