G
Gene Goykhman
Hi there. Has anyone experienced an intermittent problem where only functions
from the first included script tag are available to the onLoad event handler?
An example:
<html>
<head>
<script src="library1.js></script>
<script src="library2.js></script>
<script>
function doLoad()
{
functionCallFromLibrary2();
}
</script>
</head>
<body onLoad="doLoad();">
</body>
</html>
The script _ocassionally_ (once every 20 or 30 times, I would say) halts at
the functionCallFromLibrary2() with an Object Expected error. My debugger
tells me that, at this point in execution, all functions from library1.js are
defined and available but no functions from library2.js are available. Both
library1.js and library2.js are function libraries... there is no inline code
in either file.
Any insight? THANKS!!
-- Gene
from the first included script tag are available to the onLoad event handler?
An example:
<html>
<head>
<script src="library1.js></script>
<script src="library2.js></script>
<script>
function doLoad()
{
functionCallFromLibrary2();
}
</script>
</head>
<body onLoad="doLoad();">
</body>
</html>
The script _ocassionally_ (once every 20 or 30 times, I would say) halts at
the functionCallFromLibrary2() with an Object Expected error. My debugger
tells me that, at this point in execution, all functions from library1.js are
defined and available but no functions from library2.js are available. Both
library1.js and library2.js are function libraries... there is no inline code
in either file.
Any insight? THANKS!!
-- Gene