From: Robert R. <rra...@ya...> - 2001-01-04 00:46:38
|
Why not just capture the onload event. Thats why it is invoked there. O= r am I missing something here? Robert Rainwater ----- Original Message ----- From: "Mark Haviland" <mha...@ha...> To: <dyn...@li...> Sent: Wednesday, January 03, 2001 6:37 PM Subject: RE: [Dynapi-Dev] loadpanel troubles... > > > > -----Original Message----- > > From: dyn...@li... > > [mailto:dyn...@li...]On Behalf Of Robert > > Rainwater > > Sent: Sunday, December 31, 2000 11:46 PM > > To: dyn...@li... > > Subject: Re: [Dynapi-Dev] loadpanel troubles... > > > > > > > > > > > I think in LoadQueue.prototype.loadNext, you can change: > > > > > > this.index++; > > > > > > -to- > > > > > > DynAPI.removeFromArray(this.queue,this.index++); > > > > > > > > oops. It should probaly say: > > > > DynAPI.removeFromArray(this.queue,this.index); > > Score! Thanks. > > Is there any way that the following can make it into CVS for loadpanel = ? > > In the constructor: > > this.loadHandlerOnFinish =3D null; > > then the loadHandler method would become: > > LoadPanel.prototype.loadHandler =3D function(url) { > this.url =3D url; > var w,h; > if (is.ns4 && this.isILayer) { > w =3D this.loadElement.document.width; > h =3D this.loadElement.document.height; > } > else { > w =3D this.getContentWidth(); > h =3D this.getContentHeight(); > } > if (this.autoW) this.setWidth(w,false); > if (this.autoH) this.setHeight(h,false); > this.isReloading =3D false; > this.invokeEvent('load'); > if (this.loadHandlerOnFinish !=3D null && typeof(this.loadHandlerOnFin= ish) =3D=3D "function"){ > this.loadHandlerOnFinish(w,h); > } > }; > if (this.loadHandlerOnFinish !=3D null && typeof(this.loadHandlerOnFin= ish) =3D=3D "function") { > this.loadHandlerOnFinish(w,h); > } > > I'm creating a widget where I keep an array of loadpanels for URL's tha= t have been added to my widget object. Adding the above code the the loadpanel class was the only way I could figure out how to 'safely' get t= he width & height of a panel. > > > -Mark Haviland > =0F)=DA=A6 =DE=BEf=A2-)=E0-+-=0F)=DA=A6 =DE=BEX=AC=B6=CB(=BA=B7=1E~S=E0zw=AD?=DBi=FF=F9b=B2=DB,=A2=EA=DCy=FA+=81=E9= =DE=B7=F9sSYsY=F9b=B2=D8=A7~=8F=DD=CAv=A9?=D7=AF |