Can anyone help me with the following problem:
I'm trying to write new content to multiple layers from one function like this:
function writeContent(layerArray, contentArray) {
for(var i=0;i<layerArray.length;i++) {
//alert('Writing new content');
layerArray.document.open('text/html', 'replace');
layerArray.document.write(contentArray);
layerArray.document.close();
}
}
If I run this function Netscape will crash almost every time. However, when I uncomment the 'alert' in the code, it will almost never crash.
It seams like Netscape needs some time to catch it's breath before being able to write new content again.
By the way, the layerArray is an array I've created by using:
layerArray[x] = new Layer(100);
Does anyone have the same problem, or know a solution to this problem?
Thanx,
Raver1
I'm trying to write new content to multiple layers from one function like this:
function writeContent(layerArray, contentArray) {
for(var i=0;i<layerArray.length;i++) {
//alert('Writing new content');
layerArray.document.open('text/html', 'replace');
layerArray.document.write(contentArray);
layerArray.document.close();
}
}
If I run this function Netscape will crash almost every time. However, when I uncomment the 'alert' in the code, it will almost never crash.
It seams like Netscape needs some time to catch it's breath before being able to write new content again.
By the way, the layerArray is an array I've created by using:
layerArray[x] = new Layer(100);
Does anyone have the same problem, or know a solution to this problem?
Thanx,
Raver1