Can someone please help me sort out a few errors from some javascript functions: I'll point which function, error with the link of the script written in fiddle.These functions are working perfectly but those errors came up in web developers tool.
(1) calling Flexslider js, this is the function:
ERROR : Uncaught ReferenceError: SyntaxHighlighter is not defined
<script type="text/javascript">
$(function(){
SyntaxHighlighter.all(); <----- ERROR
});
$(window).load(function(){
$('.flexslider').flexslider({
animation: "slide",
start: function(slider){
$('body').removeClass('loading');
}
});
});
</script>
(2) ERROR - This script is to disable the right button. the entire script can be seen here : http://jsfiddle.net/DQ6EX/
captureEvents() is deprecated. This method doesn't do anything.
(3) ERROR - event.returnValue is deprecated. Please use the standard event.preventDefault() instead. Line 3345
http://code.jquery.com/jquery-1.9.1.js
// by a handler lower down the tree; reflect the correct value.
this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;