hello, Is there any way of reloading from a page only the iframe? Main page is chat.php, there's an iframe( chat_box.php ) wich i want to refresh without refreshing chat.php i wrote function rel(){ window.location="chat_box.php"; window.location.reload(); } PHP: But seems that all the page refreshes ... Thanks in advance
thank you, also is there any way of doing sort of live refresh? To refresh each second a part of code, without loading all the page?
Yes, using AJAX. Search google about XMLHttpRequest. You can get new data from server using ajax and insert it in page or replace with old html code using javascript (innerHTML, appendChild etc).
hmm, i coded the actual chat in ajax, dm-strike.com/chat.php, but how to keep updating the chat page? I am using currently the meta refresh, in the chat_box.php