I have a problem, when I try to use a outer script that uses jquery like some caruslle script that I have.
I got a layout and I want to transform it into yii and it has some scripts that use jquery like carousels and so on.
Now yii automatically embeds jquery.
The problem is that if I embed jquery by hand, the scripts work but the yii scripts don’t.
And if I don’t embed the jquery, the yii scripts work (like ajax validation) and my scripts don’t.
So like this: mine works
<link rel="stylesheet" type="text/css" href="/kav4/assets/8ff498f/css/redmond/jquery-ui.css" />
<script type="text/javascript" src="/kav4/assets/91eebf0f/jquery.js"></script>
<script type="text/javascript" src="/kav4/assets/91eebf0f/jquery.yiiactiveform.js"></script>
<script type="text/javascript" src="/kav4/assets/8ff498f/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
and like this: yii works
<link rel="stylesheet" type="text/css" href="/kav4/assets/8ff498f/css/redmond/jquery-ui.css" />
<script type="text/javascript" src="/kav4/assets/91eebf0f/jquery.js"></script>
<script type="text/javascript" src="/kav4/assets/91eebf0f/jquery.yiiactiveform.js"></script>
<script type="text/javascript" src="/kav4/assets/8ff498f/js/jquery-ui.min.js"></script>
you can check my answer here If you include 2 version of jQuery in a page how do you restrict a plugin to just one of them?
It shows how to include two different versions of jquery in same page