Hi! I'm benni from Italy,
I have a problem with an auto-refresh window.
From my index page a call a function to open a small pop up window (call it messenger.html)
which is sized and displayed at the bottom right end of the screen
function openMessenger(url){
var ah=screen.availHeight;
var h=ah-250;
var aw=screen.availWidth;
var w=aw-335;
var wind=window.open(url,"mess","width=300,height=200,left=" + w + ",top=" + h + ",directories=no,location=no,status=no,statusbar=no,toolbar=no,resizable=no,menubar=no,scrollbars=no");
if(!wind.opener) wind.opener=self;
if(wind.focus!=null) wind.focus();
}
In Messenger.html <HEAD>, I put a meta tag to make it refreshing automatically:
<meta http-equiv="Refresh" content="300">
The problem is that when I click on a link placed on Messenger.html in order to open another page in a new window (call it room.html), it stops refreshing.
The 2nd page is opened by another JS function in Messenger.html, and has the meta-refesh tag, too.
function openRoom(url){
var swind=window.open(url,"roomx", "width=530, height=500, left=1,top=1,directories=no,location=no,status=no,statusbar=no,toolbar=no,resizable=no,menubar=no,sc rollbars=yes");
if(!swind.opener) swind.opener=self;
if(swind.focus!=null) swind.focus();
}
What I want, is to have both pages refreshing automatically, but now only the second one does it; Messenger.html does no do it any longer if I open the new one.
Where's my mistake, or what extra code do i need?
somebody help me out I've no clue how to solve it!!
Thanks everybody in advance and.. i know that many pop ups aren't good but i just need them!
Benni
I have a problem with an auto-refresh window.
From my index page a call a function to open a small pop up window (call it messenger.html)
which is sized and displayed at the bottom right end of the screen
function openMessenger(url){
var ah=screen.availHeight;
var h=ah-250;
var aw=screen.availWidth;
var w=aw-335;
var wind=window.open(url,"mess","width=300,height=200,left=" + w + ",top=" + h + ",directories=no,location=no,status=no,statusbar=no,toolbar=no,resizable=no,menubar=no,scrollbars=no");
if(!wind.opener) wind.opener=self;
if(wind.focus!=null) wind.focus();
}
In Messenger.html <HEAD>, I put a meta tag to make it refreshing automatically:
<meta http-equiv="Refresh" content="300">
The problem is that when I click on a link placed on Messenger.html in order to open another page in a new window (call it room.html), it stops refreshing.
The 2nd page is opened by another JS function in Messenger.html, and has the meta-refesh tag, too.
function openRoom(url){
var swind=window.open(url,"roomx", "width=530, height=500, left=1,top=1,directories=no,location=no,status=no,statusbar=no,toolbar=no,resizable=no,menubar=no,sc rollbars=yes");
if(!swind.opener) swind.opener=self;
if(swind.focus!=null) swind.focus();
}
What I want, is to have both pages refreshing automatically, but now only the second one does it; Messenger.html does no do it any longer if I open the new one.
Where's my mistake, or what extra code do i need?
somebody help me out I've no clue how to solve it!!
Thanks everybody in advance and.. i know that many pop ups aren't good but i just need them!
Benni