Why not just capture the onload event. Thats why it is invoked there. Or
am I missing something here?
Robert Rainwater
----- Original Message -----
From: "Mark Haviland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 03, 2001 6:37 PM
Subject: 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���(��~S�zw�?�i��b��,���y�+���sSYsY�b�ا~���v�?ׯ
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev