hi .. This is my chats' sign out function. It works perfectly when I open the chat on a page alone.e.g. www.abc.com/chatbox/index.htm But when its with other elements in the same page using iFrame it will not work.e.g.www.abc.com/chat&paintIframe.htm
This is my code
<script type="text/javascript">
function singout(){
data="user=" + "" +"&oper=signout"
Ajax_Send("POST","chatbox/users.php",data,checkSignOut);
alert("Singout");
return false;
}
</script>
and here I call it
<iframe height="300" width="600" frameborder="0" src="chatbox/index.htm" onbeforeunload="singout()"></iframe>
Any help is appreciated ..