0

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?

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by shishtawitch
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.