Is there a best practice, or typical way to do AJAX updating for data on a custom admin screen or post.php?

Is there a best practice, or typical way to do AJAX updating for data on a custom admin screen or post.php?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)