Okay, this is strange. Suddenly ALL my jQuery scripts have been disabled on my website.
I’ve checked the links to the jquery scripts and they’re still alive.
Goth both links included:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
This is one of the many jQuery scripts suddenly not working:
<script type="text/javascript">
$(document).ready(function() {
$(function() {
$("#sortable").sortable({ opacity: 0.6, cursor: 'move', update: function() {
var order = $(this).sortable("serialize") + '&action=updateRecordsListings';
$.post("?id=", order, function(theResponse){
$("#contentRight").html(theResponse);
});
}
});
});
});
</script>
They worked earlier without problems. My site is http://www.silverart.me, but you can’t see any of the scripts when you’re not logged in, that’s why I included the above example of one of my jQuery scripts.
When I log in, I got control of all elements on my site with different jquery scripts and i can’t understand why it doesn’t work when it did earlier.
I’ve tried adding to test if jquery was loading: $(“div”).css(“border”, “3px solid red”);
And jquery does load as intented. But the sortable functions doesn’t.
Well, it seems the answer for this trivial question remains to be unknown. Your pasted code looks and feels valid, and as discussed in the comments, the browser interprets JavaScript line by line until it encounters an uncaught error. Once you have successfully fixed that error the browser should be able to run your sortable function.