I recently found the following fix for the failure code 0x80040111 on
the internet, but at a loss about where to place it.

http://bytes.com/groups/javascript/503355-how-fix-0x80040111-ns_error_not_available-error

The FUNCTIONAL FIX

function LoadContent(reqVar,loaderId,divId,url) {
        if(reqVar==null) {
                reqVar = newXMLHttpRequest();
        }
        if(reqVar==null) {
                GetContentFromURL(loaderId,divId,url);
        return;
        }
        if (divId != null && typeof divId != 'undefined') {
                reqVar.onreadystatechange = function() {
                        DrawResponse(reqVar,divId);
                }
        }
        reqVar.open("GET", url, true);
        reqVar.send("");
}

The FUNCTIONAL FIX CALL

setTimeout("LoadContent("+null+",'contentLoader', 'viewMode', '"+url
+"')",0)


FURTHER EXPLANATION

I have placed the function itself in an external Javascript file and
then experimented with placing the function call inside the ready
function in the same file, outside the ready function in the same
file, and inside a script tag in the HTML document both with and
without the ready function.  Nothing seems to work, and I am tired of
"playing".

Perhaps it should be noted that the same error is produced whether I
call the document from within Dreamweaver or from outside Dreamweaver
using Firefox, but does not appear to occur when I call the document
from within Dreamweaver using Opera or Safari.

Roddy

Reply via email to