function load_objects() { $.ajax({ type: "POST", url: "load_date.php", data: "req=ok", success: function(html) { $("#objects").empty(); $("#objects").append(html); load_date(); } }); }