Kod
function get_token() {
document.getElementById('kod_z_obrazka').src='./img/token.php?key=' + Math.random();
}
while (1) {
setTimeout(get_token(), [CZAS]);
}
document.getElementById('kod_z_obrazka').src='./img/token.php?key=' + Math.random();
}
while (1) {
setTimeout(get_token(), [CZAS]);
}
Poprostu nic sie nie dzieje.
Na konsoli w FF mam tylko tyle:
Kod
Błąd: document.getElementById("kod_z_obrazka") has no properties
Plik źródłowy: http://127.0.0.1/test.html
Wiersz: 50
Plik źródłowy: http://127.0.0.1/test.html
Wiersz: 50
Dodam ze sama funckja get_token() dziala dobrze.