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
Bu benim kodudur
<script type="text/javascript">
function singout(){
data="user=" + "" +"&oper=signout"
Ajax_Send("POST","chatbox/users.php",data,checkSignOut);
alert("Singout");
return false;
}
</script>
ve burada ben onu aramak
<iframe height="300" width="600" frameborder="0" src="chatbox/index.htm" onbeforeunload="singout()"></iframe>
Herhangi bir yardım takdir ..