javascript - Ajax Popup Control -


basically have is:

  1. a user joins room
  2. creator of room has ability kick people.

i know can execute close pop command on user thats when has window active. if user closed window it's no problem since window closed. there anyway close pop while not have active?

have ever tried develop chat application? regularly check database new message , updates chatboxes on either side. can same thing lil bit of customization.

when user enters chatroom, far understand ur text, in new window. so, while launching new window, save handle it. this:

var mywindow = window.open("foo.html","windowname"); 

now have ajax script on parent page regularly checks server commands. when want user kick out of room, make signal server point (maybe database or file) ajax script consulting. now, ajax gets signal, make fire close signal this:

mywindow.close(); 

this 1 solution. best thing here instead of closing window, may redirect window more informative page tells him why kicked out!


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -