I'm trying to add a line to my jQuery function that would make the page refresh after the AJAX was finished. This is my original script below that works fine.
$(document).ready(function() {
$("#show_list").sortable({
handle : '.handle',
update : function () {
var order = $('#show_list').sortable('serialize');
$("#info").load("scripts/process_show_order.php?"+order);
}
});
});
And this is my modified script that doesn't work.
$(document).ready(function() {
$("#show_list").sortable({
handle : '.handle',
update : function () {
var order = $('#show_list').sortable('serialize');
$("#info").load("scripts/process_show_order.php?"+order);
},
location.reload();
});
});
I added the , after the function ended } and then on the next line I added location.reload();...which broke the script. Am I doing something wrong?
Mongoose

New Topic/Question
Reply


MultiQuote


|