web3 callback on transaction receipt

The callback on getTransactionReceipt (txHash) returns a null receipt for pending transactions which have a hash number. How can I check within javascript to ensure that the transaction has been mined and then obtain a receipt when a send transaction is invoked. Is there any api with a callback which can inform that the transaction receipt is generated post mining. The callback for contract creation works ok when we check on the contract.address so is there anything similar for send transaction?
Sign In or Register to comment.