dynamic script reference load order problem
Posted this on inetexplorer.scripting yesterday, but that group looks pretty
dead, so I thought I'd repost here...
We're trying to use the Cute Editor on a page where we loaded it using
document.write(). In other words when we decide we want an editor, we
document.write() the html blob + the <script> snippets needed to launch the
editor in a <div> we create.
The problem we're running into is that we also want to customize the
behavior by redefining a couple of methods like CuteEditor_OnInitialized().
Our problem is that while all the script appears to load up, our re-defined
method is not the one being called.
I figured it was a load order problem, so I tried to stick <script
onreadystatechange="trackLoad(this);" > in the script tag to see what's
I'm a little puzzled; when onreadystatechange fires, I'm seeing "loading"
and sometimes "loaded" but I never see a "completed" state for our script tag
load. I would have thought that you'd always get a "completed" state; how
can you not?
Also, we tried putting naked alert("got here!");'s in the script file, and
they don't fire either.
What should I be looking at?