Ами освен AJAX можеш да предаваш данни по websockets, server-side events, webrtc
Ето с jQuery:
[js]
$.get('file.php').done(function(data) {
$('#idnadiva').html(data);
})
[/js]
А ето и само с JS, като това с fetch не работи все още под всички браузъри
[js]
fetch('file.php')
.then(function(response) {
return response.text();
})
.then(function(text) {
document.getElementById("idnadiva").innerHTML = text;
})
[/js]