Displaying 2 results from an estimated 2 matches for "__ondomcontentloaded".
2007 Nov 20
0
Prototype error in IE for dom:loaded code
...other things, but
from an HTML perspective it is just the POST method) then the page is
re-rendered back to the client, and that is when I get a JS error on
line 3989.
That seems to be the code for faking the DOMContentLoaded event for
IE. The code is:
3988: document.write("<script id=__onDOMContentLoaded defer
src=//:><\/script>");
3989: $("__onDOMContentLoaded").onreadystatechange = function() {
The error I get is that $("__onDOMContentLoaded") is null. Going into
a debugger it seems that the document.write from line 3988 did not
actually add the script. doc...
2007 Dec 03
3
DOMContentLoaded error on IE6
...ototype.js");
document.getElementsByTagName("head")
[0].appendChild(scr);
on IE6 I get the following error:
''null'' is null or not an object
The error occurs on the following lines:
document.write("<script id=__onDOMContentLoaded defer
src=//:><\/script>");
$("__onDOMContentLoaded").onreadystatechange =
function() {
if (this.readyState == "complete") {
this.onreadystatechange = null;
fireContentLoadedEvent();...