pangfai
09-23-2002, 11:26 AM
My web page contains 2 frames : leftpane and rightpane.
The leftpane is intended to reload rightpane at a regular interval every 5 seconds. Due to low bandwidth connecting to web server, such reload might fail. I tried try() and catch(), but they seems unable to handle this kind of error.
The intended result is : if it cannot reload rightpane, reload again and again.
The extract of the code of rightpane is as follows :
try {
function refreshlist() {
parent.rightpane.location = 'www.yyy.com';
}
}
catch (dummy) {
alert('Load error');
refreshlist()
}
The leftpane is intended to reload rightpane at a regular interval every 5 seconds. Due to low bandwidth connecting to web server, such reload might fail. I tried try() and catch(), but they seems unable to handle this kind of error.
The intended result is : if it cannot reload rightpane, reload again and again.
The extract of the code of rightpane is as follows :
try {
function refreshlist() {
parent.rightpane.location = 'www.yyy.com';
}
}
catch (dummy) {
alert('Load error');
refreshlist()
}