See below code (start's line 281 of
dynlayer.js)
Under NS we iterate through all links of a newly
populated layer
assigning each link a lyobj property..
but we don't do this under Ie.. why?
I've found that this works under IE
this.lyobj.setVisible(false) is WAY better
than
"top.area1.DynAPI.document.getAll['mylayer'].setVisible(false)'
Example of using lyobj:
.setHTML('<a href="javascript:void(null)"
>click</a>'); if (is.ns4)
{
DynLayer.prototype._setHTML=function(html) { var sTmp=(this.w==null)?'<NOBR>'+this.html+'</NOBR>':this.html; this.doc.open(); this.doc.write(sTmp); this.doc.close(); for (var i=0;i<this.doc.images.length;i++) this.doc.images[i].lyrobj=this; for (i=0;i<this.doc.links.length;i++) this.doc.links[i].lyrobj=this; } } else if (is.ie) { DynLayer.prototype._setHTML=function(html) { this.elm.innerHTML=html; var images = this.elm.all.tags("img"); for (var i=0;i<images.length;i++) images[i].lyrobj=this; for
(i=0;i<this.doc.links.length;i++) this.doc.links[i].lyrobj=this; //<--
Suggested line addition
} |
- Re: [Dynapi-Dev] links.lyobj Doug Melvin
- Re: [Dynapi-Dev] links.lyobj Michael Pemberton
- Re: [Dynapi-Dev] links.lyobj Doug Melvin
- Re: [Dynapi-Dev] links.lyobj Michael Pemberton
- Re: [Dynapi-Dev] links.lyobj Dan Steinman
- Re: [Dynapi-Dev] links.lyobj Doug Melvin
- Re: [Dynapi-Dev] links.lyobj Doug Melvin