How to reset a form on AHAH drupal_jason call
This is how you can reset a form on a Drupal AHAH call by sending a JavaScript with the drupal_json call.
<?php
$domaintable = _get_domain_table($_POST['uid']);
$domaintable .= '<script type="text/javascript">
var domainForm = document.getElementById("domainuser-add-domain-form");
domainForm.reset();
</script>';
return drupal_json($domaintable);
exit();
?>