Hi there,
I am working on this project and my Div isnt refreshing this is my JQuery code
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript">
<?php
/*members.php?cmd=Chatroom&room=3*/
echo "var auto_refresh = setInterval(
function ()
{
$('#screen').load('members.php?cmd=Chatroom&room=".$rid."').fadeIn(\\"slow\\");";
echo "$('#room').load('members.php?cmd=ShowUsers&room=".$rid."').fadeIn(\\"slow\\");
}, 10000);";
?>
</script>
the $rid is this
$room = $_GET['room'];
if(!isset($room))
{
$room = "0";
}
$rid = $_GET['room'];
And here is my html for it
<div id="cwall">
<div id="screen">
<?
$room = $_GET['room'];
if(!isset($room))
{
$room = "0";
}
MessagesInRoom($room);
?>
</div>
<div id="room">
<?
$room = $_GET['room'];
if(!isset($room))
{
$room = "0";
}
UsersInRoom($room);
?>
</div>
What am i doing wrong for the room and screen id divs?
Can anyone help me please?
Thanks,William