TriAdmin wrote:
The javascript is at the bottom of the page but before the footer. I am used
to javascript being in the header. As I said, I inherited this app.
This page works as is in both IE and firefox in several other parts of the
site but I am having trouble diagnoing where in the javascript it is causing
the error. Any hints on debugging javascript in Firefox? Any extensions?
The "internet operation aborted" error in my experience usually comes
from code that's trying to add elements to the DOM (using for example
insertBefore or appendChild) before the page is finished loading
(document.readyState=="complete"). Internet Explorer is the only browser
that can't handle adding to the DOM in this way. You can sometimes get
away with adding stuff to the DOM when the document.readyState has
reached as far as the "interactive" state, but even that has some risk.
If I'm right, and your JavaScript is adding to the DOM during parsing,
you could alert the value of the readyState at the point at which you
were just about to add stuff to the DOM using
alert(document.readyState). I bet you'll find it's in one of the other
states. I don't recall all the states but I think two of them are
"initializing" and "loading". Either of these would be a bad time to be
adding to the DOM except with inline tags and/or document.write.