My problem is after adding:
<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
to my site, Plugins like nivoslider, and other jquery scripts are not working.
but in order to make working the code below i need “jquery tools”
<script type="text/javascript"><!--
function GetAvailProductSizes() {
$('select#productsize option').remove();
$('select#productsize').append('<option value=""><? echo $langdata['oneprodpage_selectsize']; ?>...</option>');
var color = $('#productcolor').val();
if (color > 0) {
var availsizes;
var http_request = new XMLHttpRequest();
http_request.open( "GET", '<? echo ROOT; ?>/autocompleteavailsizes/?productid=<? echo $thisproduct['id']; ?>&color=' + color, true );
http_request.send(null);
http_request.onreadystatechange = function () {
if ( http_request.readyState == 4 ) {
if ( http_request.status == 200 ) {
availsizes = eval( "(" + http_request.responseText + ")" );
for (var i = 0; i < availsizes.length; i++) {
$('select#productsize').append('<option value="' + availsizes[i].id + '">' + availsizes[i].name + '</option>');
};
} else {
alert( "There was a problem with the URL." );
}
http_request = null;
}
};
};
}
//-->
</script>
it works only if i include:
<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
BUT if i do so, other jquery scripts are not working, i mean nivoslider and other simple popup divs…
How should i solve this problem?
jQuery Tools includes it’s own version of jQuery. Include a version of jQuery tools that doesn’t include it’s own jQuery.
http://cdn.jquerytools.org/1.2.7/all/jquery.tools.min.jsMake sure you include your other jquery first, followed by jquery tools, and then the rest.