<script src="http://code.jquery.com/jquery-1.5.min.js"></script>
<script>
function check(){
$.post("/ajax", {}, function(data){$("input[name='currency']").val(data)});
}
setInterval(check, 10000);
</script>
<input type="text" name="currency" readonly>