but why not just listen for the onload event which is being triggered at the
end of the loading (when it's finished :)



Pascal Bestebroer ([EMAIL PROTECTED])
Software ontwikkelaar
Oberon Informatiesystemen b.v.
http://www.oibv.com

> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Mark Haviland
> Verzonden: donderdag 4 januari 2001 0:38
> Aan: [EMAIL PROTECTED]
> Onderwerp: RE: [Dynapi-Dev] loadpanel troubles...
>
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Robert
> > Rainwater
> > Sent: Sunday, December 31, 2000 11:46 PM
> > To: [EMAIL PROTECTED]
> > 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 = null;
>
> then the loadHandler method would become:
>
> LoadPanel.prototype.loadHandler = function(url) {
>       this.url = url;
>       var w,h;
>       if (is.ns4 && this.isILayer) {
>               w = this.loadElement.document.width;
>               h = this.loadElement.document.height;
>       }
>       else {
>               w = this.getContentWidth();
>               h = this.getContentHeight();
>       }
>       if (this.autoW) this.setWidth(w,false);
>       if (this.autoH) this.setHeight(h,false);
>       this.isReloading = false;
>       this.invokeEvent('load');
>       if (this.loadHandlerOnFinish != null  &&
> typeof(this.loadHandlerOnFinish) == "function"){
>               this.loadHandlerOnFinish(w,h);
>       }
> };
> if (this.loadHandlerOnFinish != null  &&
> typeof(this.loadHandlerOnFinish) == "function") {
>       this.loadHandlerOnFinish(w,h);
> }
>
> I'm creating a widget where I keep an array of loadpanels for
> URL's that 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 the width & height of a panel.
>
>
> -Mark Haviland
> )ڦ ޾f��)��+-)ڦ
> ޾X���(��~��zw���i��b��,���y�+��޷���Y���b�ا~���v��ׯ
>


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

Reply via email to