new RandHash2().get(function(result){ $.ajax({ type: 'post', url: 'ajax/randHash.php', data: { randHash: result } }); });