halifaxrick
08-27-2003, 09:35 AM
Hi, I am new the the forum, so sorry if I am bothering anyone.
As most people new to the forum, I have a question :) , so I will cut the crap and ask it.
I have a Javascript function (below) that works exactally as I want it to, except it works too quickly. Is there anything that I can put at the start of the function to enduce a pause (while a directory listing in another frame loads).
function reload_all() { window.parent.main.location.href = "main.htm";}
The page is http://www.babyoctopus.com/babastuff/html
(sorry about all the baby pics, it's to keep the granparents happy.)
The frame in the top right controls the bottom left frame and a hidden frame at the bottom. When one of the links is pressed, the hidden frame changes to the directory requested, and the bottom left frame is reloaded to reflect the directory change. I currently have tried to slow the function down by making it reload a couple of pages before the correct one, like so.
function reload_all() { window.parent.main.location.href = "loading.htm"; window.parent.main.location.href = "loading.htm"; window.parent.main.location.href = "main.htm";}
The function is performed by an OnClick.
Thanks in advance, Rick.
As most people new to the forum, I have a question :) , so I will cut the crap and ask it.
I have a Javascript function (below) that works exactally as I want it to, except it works too quickly. Is there anything that I can put at the start of the function to enduce a pause (while a directory listing in another frame loads).
function reload_all() { window.parent.main.location.href = "main.htm";}
The page is http://www.babyoctopus.com/babastuff/html
(sorry about all the baby pics, it's to keep the granparents happy.)
The frame in the top right controls the bottom left frame and a hidden frame at the bottom. When one of the links is pressed, the hidden frame changes to the directory requested, and the bottom left frame is reloaded to reflect the directory change. I currently have tried to slow the function down by making it reload a couple of pages before the correct one, like so.
function reload_all() { window.parent.main.location.href = "loading.htm"; window.parent.main.location.href = "loading.htm"; window.parent.main.location.href = "main.htm";}
The function is performed by an OnClick.
Thanks in advance, Rick.