June 13, 200818 yr hello i have been learning php and mysql for a month now thanks every one for the help,i have done my first project which was a shoutbox/chat room experiment which is workin you login in and it remembers your name and prints your name and message up now i need to refresh the page in a different way this is the way i am doing it at the moment is <script> setTimeout("window.location.replace('chatlog.php')",14000); </script> now the problem is if you are typing a long message in it refreshes and you loose the message i have thought about using an iframe but when i do that i loose the login details i could do with some thing other that a timed refresh script is this possible thanks again
June 13, 200818 yr Google > Ajax updater Short: you have a js script that calls a php script and updates a div without reloading the page.
June 13, 200818 yr Author Google > Ajax updater Short: you have a js script that calls a php script and updates a div without reloading the page. thanks for that great
June 14, 200818 yr Actually what you need is an AJAX periodical updater (you probably want the chat refreshed periodically). Here's a starter link for prototype.
June 14, 200818 yr Author Actually what you need is an AJAX periodical updater (you probably want the chat refreshed periodically). Here's a starter link for prototype. Thanks again been trying to get this ajax thing work all day just carnt seem to get the hang of it
Create an account or sign in to comment