I wanted to use jquery-ui plugin after I've used the fancybox plugins. But when I try to link the external javascript files of the jquery-ui, a conflict is occured between the plugins. I tried to find a general solution to this problem but all I found is some specific solutions for different plugins.
I guess that something is bad with my links:
In the masterpage:
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="/fancybox/jquery.easing-1.4.pack.js"></script>
<script type="text/javascript" src="/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="/jqueryui/scripts/jquery-ui.js"></script>
<script type="text/javascript" src="/jqueryui/scripts/jquery.js"></script>
The last two links cause to this problem, or even one of them.
Here is what happens when I try to run it ,there are two error messages which appear:
Unable to get property 'init' of undefined or null reference.
and immediately afterwards:
Object doesn't support property or method 'fancybox'.
Thanks :)