I have been playing around with the IFrame version of LoadLayer and
therefore I only have a remedy for THAT part of it.
It seems that from the time the readyState flag turns 'complete' there is
some time span before the innerHTML becomes available
to javascript.
A quick remedy therefore could be a timer to wait for 100ms (safe in my
case), before taking the innerHTML and writing it to
the destination.
The following code is from line 193 of loadlayer.js and reliably loads a
sort of complex ASP page.

Hope this helps someone.
Deli

PS. I cannot (at the moment) test my page with other browsers, but this can
similarly be applied to NS6 IFrames.
I have not tested NS4, or the DIV version of the loadlayer, but this is a
start.

} else if (is.ie) {
        LoadQueue.prototype.loadTimer=function() {
                var lp=this.currentLoadLayer;
                if (!document.frames(lp.id+'loadElement')) {
                        clearInterval(lp.timerID);
                        this.continueLoad();
                }
                else if (!lp.loadElement.document.isLoading &&
(lp.loadElement.document.readyState=='interactive' ||
lp.loadElement.document.readyState=='complete')) {
                        lp.sourceTimerID=setInterval(this.toString() + 
'.loadSourceTimer()',100);
//added by a.joannnou
                        clearInterval(lp.timerID);
                        //this.loadHandler(lp.loadElement.document.body.innerHTML);    
                 //removed
by a.joannnou
                }
        }

        //added by a.joannou
        LoadQueue.prototype.loadSourceTimer=function() {
                var lp=this.currentLoadLayer;
                var html=lp.loadElement.document.body.innerHTML;
                clearInterval(lp.sourceTimerID);
                this.loadHandler(html);
        };
        //added by a.joannou
};

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of A. Joannou
Sent: 29 May 2001 03:35
To: [EMAIL PROTECTED]
Subject: [Dynapi-Dev] LoadPanel & LoadLayer useless with ASP?


I do not understand this, BUT,
        LOADPANEL and LOADLAYER
are both useless at loading ASP files reliably. Sometimes they work, and
sometimes they don't resulting in a blank box.

I have only tested them with IE5 and IIS5 on 2 machines (on their local web
server, not from the net).

Do we have any other options?

Deli


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to