Hi
Yes that's true on loadpanel is best to use is IFrame to true to get more
compatibility.
About in Ilayer on Netscape 4 I try to retouch a little the way of handling
some things on the code (you can see it on toloadlayer I posted some days
ago) and I get it work with Ilayer set to true but finally when file is
loaded the links are unclickeable I do not know way as I do not have to
much time to test it now.
In another way....
Here is a code I made and was using on DynApi 1 when the load in DIV of
DynApi1 was not working for me... take a look may be are something you can
use for loadpanel (probably not)... (pz_dynlayer.js attached to this email)
And also take a look to the pz_resizefix.js attached to this email, that is
a little js file I made to try to solve the NS4-resize-bug-shit. The
function on resize try to regenerate all layers to his prior state... for me
was working more or less very good. Maybe could be done something similar on
DynApi2...
pz_dynlayer.js (posted only the load part)
----------------------------------------------------------
// DynLayer Load power[Z]one's Method v.20
var DynLayerLoadSTILL = 0;
function DynLayerLoad(url,fn, ncpy) {
this.url=url
if ( DynLayerLoadSTILL == 0 || is.ie) {
DynLayerLoadSTILL++
this.onread = fn;
this.onload = this.onLoadHanddler
if (is.ie) this.write("<font size=1 face=verdana><b> l o a d i n g .
. . </b></font>");
if (is.ns) {
this.doc.clear()
this.elm.onload = this.onLoadHanddler
this.elm.load(url,this.w)
}
else if (is.ie) {
this.createIFRAME()
this.loadDocument(url, ncpy)
}
}
else {
setTimeout( this.obj+'.load("'+url+'","'+fn+'",'+ncpy+')', 20 );
}
}
DynLayerENLACES = new Array()
function regenerateLINKARRAYonNS(nselobj) {
var nsel = eval(nselobj)
if ( nsel.doc.links.length ){
delete DynLayerENLACES
DynLayerENLACES = new Array()
if ( nsel.doc.links.length >0) {
var ll=nsel.doc.links.length
for (var i=0; i<ll; i++) {
DynLayerENLACES[i]=nsel.doc.links[i].href
nsel.doc.links[i].href=""
}
for (var i=0; i<ll; i++) {
nsel.doc.links[i].href=DynLayerENLACES[i]
}
}
}
else {
setTimeout( "regenerateLINKARRAYonNS('"+nselobj+"')" , 20)
}
}
function DynLayeronLoadHanddler(doc, ncpy) {
this.onload = null
if (is.ie) {
if (ncpy != true) this.write(doc)
eval(this.onread)
DynLayerLoadSTILL--;
} else {
var nsel = eval(this.id.substring(0, this.id.lastIndexOf("Div")))
if (ncpy == true) eval( "nsel.write('')");
regenerateLINKARRAYonNS(nsel.obj)
setTimeout( nsel.onread , 20);
setTimeout( "DynLayerLoadSTILL--;", 30);
}
}
function DynLayercreateIFRAME() {
this.frameName = this.id + 'bufferframe'
var destFrame = document.frames[this.frameName]
if (destFrame==null) {
var html = '';
html += '<IFRAME ID="' + this.frameName + '"';
html += ' NAME="' + this.frameName + '"';
html += ' STYLE="position: absolute; left: -10px; top: -10px;
visibility:none; width:0; height:0; "';
html += ' SRC="about:blank">';
html += '<\/IFRAME>';
document.body.insertAdjacentHTML('beforeEnd', html);
}
}
function DynLayerloadDocument(url, ncpy) {
if (url)
this.url = url
this.loaded = false
this.document = null
var ifrWin = document.frames[this.frameName]
var html = ''
html += '<HTML>'
html += '<HEAD><meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"><\/HEAD>'
html += '<BODY ONLOAD=\''
html += 'var fl = parent.' + this.name + ';'
html += 'fl.loaded = true;'
html += 'fl.document = window.frames["loader"].document;'
if (ncpy) html += 'fl.onload(fl.document.body.innerHTML,'+ncpy+');'
else html += 'fl.onload(fl.document.body.innerHTML);'
html += 'document.location.replace("about:blank")'
html += '\'>'
html += '<IFRAME id="loader" name="loader" SRC="' + this.url + '">'
html += '<\/IFRAME>'
html += '<\/BODY>'
html += '<\/HTML>'
ifrWin.document.open();
ifrWin.document.write(html);
ifrWin.document.close();
}
DynLayer.prototype.load = DynLayerLoad
DynLayer.prototype.createIFRAME = DynLayercreateIFRAME
DynLayer.prototype.loadDocument = DynLayerloadDocument
DynLayer.prototype.onLoadHanddler = DynLayeronLoadHanddler
Gabriel Suchowolski
www.microbians.com - [EMAIL PROTECTED]
pz_dynlayer.zip
pz_resizefix.zip