hello..
i did livechat script using php & mysql.
in that multiusers can chat with admin. admin simultaniously gives replys to users.
actually first time newuser send a msg to admin automatically new chat box appear. for that i used onload event. now new user come to chat with admin then all popup chat boxes refreshing.....i mean all chat boxes reloading. how to do this problem?

you should have to include jquery ajax........!!

like...........

<script language="javascript">
$("#youdiv").load("yourfile.php");
var auto_refresh = setInterval(
function (){
$('#yourdiv').load('yourfile.php').fadeIn("slow");}, 10000); // refresh every 10000 milliseconds
</script>

Check it out and let me know if works..........or contains any prob

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.