Chrille
06-29-2003, 04:10 AM
Hi people,
This is my problem:
I have two frames, externalContent and bar.
In bottom I have a bar, and in top I want to view an external website.
My problem is that in the bottom bar I want to view a progress bar until the external webpage has been loaded.
This is what I got so far:
var timerId = 0;
var numSecs = 0;
function start()
{
timerId = setTimeout("updateChecker()",100);
}
function updateChecker()
{
numSecs += 100;
if(timerId)
{
clearTimeout(timerId);
timerId = 0;
}
if(numSecs>8000) // Just delay at the moment
{
document.getElementById("loading").style.visibility = "hidden";
document.getElementById("progressBar").style.visibility = "hidden";
}
else
{
timerId = setTimeout("updateChecker()",100);
}
}
Is there any way to access the source code of the external document? If so, I could view the progressbar as long as document.indexOf("</html>") == -1
Do you have any other solution to this problem?
Thanks in advance
Regards,
Chrille
This is my problem:
I have two frames, externalContent and bar.
In bottom I have a bar, and in top I want to view an external website.
My problem is that in the bottom bar I want to view a progress bar until the external webpage has been loaded.
This is what I got so far:
var timerId = 0;
var numSecs = 0;
function start()
{
timerId = setTimeout("updateChecker()",100);
}
function updateChecker()
{
numSecs += 100;
if(timerId)
{
clearTimeout(timerId);
timerId = 0;
}
if(numSecs>8000) // Just delay at the moment
{
document.getElementById("loading").style.visibility = "hidden";
document.getElementById("progressBar").style.visibility = "hidden";
}
else
{
timerId = setTimeout("updateChecker()",100);
}
}
Is there any way to access the source code of the external document? If so, I could view the progressbar as long as document.indexOf("</html>") == -1
Do you have any other solution to this problem?
Thanks in advance
Regards,
Chrille