$.ajax({ type: 'POST', url: url, //FORCE ERROR url: 'getInfo.1php', dataType: 'html', success: function(html, textStatus) { $('#update').append(html); }, error: function(xhr, textStatus, errorThrown) { alert('ERROR: here in error' + ' errMsg=' + errorThrown + ' \nerrStatus=' + xhr.status); } //end Error }); //End Ajax