O
Ola Fjelddahl
hi.
I load a script dynamically and it works
* everytime with IE6.
* sometimes! with Mozilla1.5 <- makes me curious
* never with Opera7.11
all tests on WindowsXP.
With "sometimes" I mean
[reload->fail][reload->fail][reload->succeed][reload->fail][reload->fail][reload->fail][reload-succceed][reload->fail]
etc. until it sometimes loops.
How I do:
In the page I call:
var oElement = document.createElement("SCRIPT");
oElement.id = "myscriptid";
oElement.src = "scripts/common.js";
document.body.appendChild(oElement);
And then I call a function in the file by just calling
myTestFunction();
I can live with that it works or not works but not Sometimes in
Mozilla! (Also: the myTestFunction just contains an alert and
sometimes this one starts to loop so I have to shoot down Mozilla.
TIA
/OF
I load a script dynamically and it works
* everytime with IE6.
* sometimes! with Mozilla1.5 <- makes me curious
* never with Opera7.11
all tests on WindowsXP.
With "sometimes" I mean
[reload->fail][reload->fail][reload->succeed][reload->fail][reload->fail][reload->fail][reload-succceed][reload->fail]
etc. until it sometimes loops.
How I do:
In the page I call:
var oElement = document.createElement("SCRIPT");
oElement.id = "myscriptid";
oElement.src = "scripts/common.js";
document.body.appendChild(oElement);
And then I call a function in the file by just calling
myTestFunction();
I can live with that it works or not works but not Sometimes in
Mozilla! (Also: the myTestFunction just contains an alert and
sometimes this one starts to loop so I have to shoot down Mozilla.
TIA
/OF