PDA

View Full Version : Refresh popup window from main page


Jeepers34683
08-17-2002, 12:33 AM
Situation: I have a message board and chat room. To help people see who's chatting, they can press a button that opens up a popup window listing only the chatters. That way they can decide whether they want to enter the chat room or not. Here is the link (http://swankmsdiet.com/cgi-bin/yabb/YaBB.pl) so you can see what I'm talking about. Click on the button near the bottom to see who's chatting (probably nobody!!):

My problem is twofold - okay, maybe threefold:

1. I need for the popup to be "sticky" - ie, always on top.
2. I need for the popup to refresh periodically BUT the command must come from the referring page because I can't alter the HTML code within the popup without messing up the chat room. (If anyone enters chat after the popup is opened, they will not appear in the popup unless the page is refreshed.)
3. Alternatively, perhaps the popup could be timed to close automatically - again, without altering the HTML code within the popup. This way people would have to click the button again to check the chat room.

Thanks for your help!

Spookster
08-17-2002, 06:27 AM
adding a meta refresh tag into the popup page wouldn't mess up the chatroom.

Jeepers34683
08-19-2002, 12:28 AM
Thank you, Spookster. I tried it and the popup went wacky on me - it opened a second popup window and tried to switch between the 2 at every refresh. So... I went ahead and made it an iframe instead of a popup. I'm very pleased with the results and you are absolutely correct that it doesn't mess up the chat room.

Thanks again. :cool:

Mands
06-30-2003, 03:56 AM
Hi

I am searching for some help with exactly the same 3 issues that you have noted, but I'm not sure how to use iframes?? Please could you point me in some direction so I can do exactly what you have done - very new at this.

I would really appreciate it!

Thanks

:thumbsup: