I have an old site, so i update the jquery to the latest version, now i have a lot of errors in the console :
a.indexOf is not a function
and Query.Deferred exception: a.indexOf is not a function
.
I have search the net and found it maybe of this script that is deprecated:
<script type="text/javascript">
$(document).ready(function() {
$("#main2").load("newsong.php");
var refreshId = setInterval(function() {
$("#main2").load('newsong.php?randval='+ Math.random());
}, 30000); //30 SEGUNDOS
});
</script>
i try to change it like this but failed:
"replace them with .on() to register listeners instead. Example:
$(window).load(function(){...});
becomes:
$(window).on('load', function(){ ...});"