Burdurlu adlı üyeden alıntı: mesajı görüntüle
merhaba hocam, parantez yanlış yerde kalmış aşağıdaki kodu kullanabilirsiniz.
setInterval( function() {
        $.getJSON("<?php echo $source; ?>", function(x){
            $("#try").text(x['data']['ALTIN']['alis']);
        })}, 1000);
Sayfa yüklendiğinde bu işlemi yapmak istiyorsanız eğer document ready içerisine almanız gerekir.
$(document).ready(function() {
 setInterval( function() {
        $.getJSON("<?php echo $source; ?>", function(x){
            $("#try").text(x['data']['ALTIN']['alis']);
        })}, 1000);
});