I’ve got this 2 codes returning “script error alert” to me on Internet Explorer 8. What is wrong please (or missing)?
<script>
$(".alert").alert('close');
</script>
<script type="text/javascript">
var $j = jQuery.noConflict()
$j(function(){
SyntaxHighlighter.all();
});
$j(window).load(function(){
$j('.flexslider').flexslider({
animation: "slide",
start: function(slider){
$('body').removeClass('loading');
}
});
});
</script>
The second I know that is because of this (but I dont know why?):
SyntaxHighlighter.all();
and this:
$('body').removeClass('loading');
If
SyntaxHighlighter.all();is causing a problem then you’ve probably forgotten to load the JavaScript that definesSyntaxHighlighteror perhaps the case is different than you’re trying to use.This:
will be a problem because you’ve called
noConflictand that will return$to whatever it was before jQuery tried to take it over. You should use the$jthatnoConflictgave you: