PDA

View Full Version : How To Reload A Page With Another?


Michael
08-17-2002, 02:25 AM
hi all
let me explain my question more specificly.

I want to have an effect like this: The user will open 2 windows, they are called A and B, and B will refresh window A every minute.

how can I do that, please help, thanks

scoutt
08-17-2002, 03:48 AM
why when window A will do it by itself with the meta refresh tag.

Michael
08-17-2002, 12:02 PM
Originally posted by scoutt
why when window A will do it by itself with the meta refresh tag.

I know how to let a window refresh by itself, well... my problem will have to deal with traffic program's surf window...

I have join many traffic program and run them for other people and I get revenue from it. Since many traffic program doesn't refresh itself (you have to click "Next" or something similar to that) I then had this idea before: Put all traffic program's surf bar as frames in a window and I can run as many traffic program in a same time, but all traffic program's surf bar has frame breaker therefore I can't do that. So that's why I am thinking a way for window B to refresh window A (in this situation, window A is the traffic program surf bar)

anyone has ideas on how to do that?

scoutt
08-17-2002, 12:07 PM
you need to think of another way. if you open 2 windows, well A and B then somebody will close B and it will no longer refresh A so you won't get any revenue. that is my take on it. a lot of people use popupKillers and it would ruin your idea that way too. that is why I said use the meta tag.

Michael
08-17-2002, 04:35 PM
Sorry if I didn't explain this well...

the window A and B thing is for my own use, not for other people

let's say that if window A is the surf bar of the traffic program, and I want window B to refresh window A

the reason that I can't use meta tag on window A is that because window A is the surf bar of the traffic program, which is not mine. They are given by the traffic program company

So after all, I want a window (window B) to refresh the traffic surf bar (window A), which I don't have the ability to add meta tag. And I will run this combination on my computer ONLY, so for example if the window A is refresh by window B every 20 second automatically, I can leave home for several hours and get a lot of traffic! No need to click and wait...

Please help!

scoutt
08-17-2002, 05:07 PM
only if you open the window that you wanted to refresh with javascript. so your window A has to be the window that does the refreshing. so then you could, once you open the window, do somthing like this

window.name_of_window.refresh();

soemthing so that effect.

so you would have to open the window with
window.open('',page.html);

Michael
08-18-2002, 12:01 AM
thanks Scoutt, I am working this right now, but I encounter another problem: how can I give a name to a window? How should I do to declare a name of a window?

please help!!!

scoutt
08-18-2002, 01:34 AM
previewwin = window.open('',page.html);
lim = window.previewwin.refresh();
setTimeout(lim, 3000);

not sure if that will work.

Michael
08-18-2002, 05:15 PM
thanks Scoutt, for the tips. It did the trick!