send a popup in a chat script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chamssoudine
    New Member
    • Dec 2010
    • 1

    #1

    send a popup in a chat script

    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> &nbsp;

    these code is between the while loop

    thanks for your help
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You need to trigger the popup script with something. Does the receiver have a page open by which he can receive a "signal" to open the window?

    Comment

    Working...