hi
i make a chat script very simple and i wanna that if the sender send the message the chat window for the receiver open automatically.t he system actually is that :if a user is online he saw all member online and he have to clic a in a user online but the chat window open only in the part of the receiver so sender and receiver must open their window.and to open the window i use this code in the file online :
<a href="javascrip t:void(0)" onclick="window .open('../test/discuss.php?rec =<?=$row_onlin e['mid']?>',<?=$row_onl ine['mid']?>,
'height=500,wid th=455,status=y es,toolbar=no,m enubar=no,locat ion=no')">
<img src="http://bytes.com/submit/includes/photo/<?=$row_onlin e['Photo']?>" width="35" height="35" border="0"
title="<?=$row_ online['firstname']?> <?=$row_onlin e['lastname']?>" /></a>
these code is between the while loop
thanks for your help
i make a chat script very simple and i wanna that if the sender send the message the chat window for the receiver open automatically.t he system actually is that :if a user is online he saw all member online and he have to clic a in a user online but the chat window open only in the part of the receiver so sender and receiver must open their window.and to open the window i use this code in the file online :
<a href="javascrip t:void(0)" onclick="window .open('../test/discuss.php?rec =<?=$row_onlin e['mid']?>',<?=$row_onl ine['mid']?>,
'height=500,wid th=455,status=y es,toolbar=no,m enubar=no,locat ion=no')">
<img src="http://bytes.com/submit/includes/photo/<?=$row_onlin e['Photo']?>" width="35" height="35" border="0"
title="<?=$row_ online['firstname']?> <?=$row_onlin e['lastname']?>" /></a>
these code is between the while loop
thanks for your help
Comment