If this error means that surely there is some error in getting data from the checkMultipleAccounts.php page.
Did the Request hit the checkMultipleAccounts.php ,if you attach the debugger for the PHP ?
Try this one check if you get any error
Code:
<script type="text/javascript">
$(document).ajaxError(function(e, xhr, settings, exception) {
alert('error in: ' + settings.url + ' \n'+'error:\n' + xhr.responseText );
});
$.post('admin/checkMultipleAccounts.php',{},
function(data){sCompanies=jQuery.trim(data); // returns a table containing companies
$('#dialog').attr('title','Select a company.').html(sCompanies)
.dialog(
{
buttons:{ 'Cancel':function(){ $(this).dialog('close');window.location.href="logout.php";}} ,
draggable:false,resizable:false,modal:true,
}
);
}
);
</script>