MyBB Community Forums

Full Version: AJAX conflict with jquery slider - chat, quote, rating etc. functions not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have added a Parallax Content slider to my header template, but now none of the AJAX functions are working like chat, multiquote, thread rating etc. :
<link rel="stylesheet" type="text/css" href="css/style2.css" />
<script type="text/javascript" src="js/modernizr.custom.28468.js"></script>
<link href='http://fonts.googleapis.com/css?family=Economica:700,400italic' rel='stylesheet' type='text/css'>
<noscript>
<link rel="stylesheet" type="text/css" href="css/nojs.css" />
</noscript>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.cslider.js"></script>
<script type="text/javascript">
$(function() {
$('#da-slider').cslider({
autoplay: true,
bgincrement: 450,
interval: 3000
});
});
</script>
<div id="da-slider" class="da-slider">
<div class="da-slide">
<h2>HEADING</h2>
<p>paragraph</p>
<a href="#" class="da-link">Read more</a>
<div class="da-img"><img src="forum.gif" alt="forum" height="256" width="256"/></div>
</div>
<nav class="da-arrows">
<span class="da-arrows-prev"></span>
<span class="da-arrows-next"></span>
</nav>
</div>

I have also tried to add jQuery.noConflict(); to the line above $(function(), but it is not working at all.
I'm having a similar functions issue but with running html inside threads, It might be a javascript related issue. In my case running javascript inside of threads disables most of the posting features on that thread.
Problem has been resolved

<script type="text/javascript">
var j = jQuery.noConflict();
</script>

and replacing $ by j in the js file as well.