Hi Doug,

I've got a modified version of the LoadPanel I've been
working on, I've attached it to this mail if you want
to try it out.

I haven't changed the setTimeout, I've been trying to
work around these problems in other ways. The reason
being you never know the speed of the users link, or
the processor, so changing the setTimeout won't fix it
for everyone.

If it fixes your problems as well, perhaps the changes
I've made should go into the CVS.

Cheers,

Cam.

--- Doug Melvin <[EMAIL PROTECTED]> wrote: >
I am currently using a snapshot (CVS) obtained
> yesterday. (the 15th)
> Plus the widets which are god-knows how old.
> The main problem seem to be as you stated.. the
> loadqueue is buggered.
> 
> As for the images not showing.. this occurs both
> with setHTML and setURL
> Although.. I did notice it only occured with larger
> images..
> Upon investigating I discovered that the following
> setTimeout('LoadQueue.continueLoad()',100);
> Which is on line 191 of LoadPanel.js was getting
> fired too fast
> and cutting off the image.
> By changing it to
> setTimeout('LoadQueue.continueLoad()',300);
> with 300 millaseconds I found that
> my image was no longer getting cut off.
> Now, even larger images may still get cut off, but I
> think applying this
> change anyways in the CVS
> will make a difference.
> 
> Also, as you said, I am going to have to debug the
> loadqueue.. ick...
> I'll post my copy of LoadPanel.js when I have fixed
> it..
> 
> Later
> Doug Melvin
> ----- Original Message -----
> From: "Cameron Hart" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 16, 2001 2:44 AM
> Subject: Re: [Dynapi-Help] arg!
> 
> 
> > Doing a resize on a Loadpanel causes it to reload
> the
> > document. Perhaps the code is buggy, you might
> have to
> > try debugging it ;-)
> >
> > I don't know why the resize is breaking it, but I
> > think I know why setURL doesn't work. If you put
> an
> > alert in the setURL method of LoadPanel, you will
> > probably find it is still being called. The reason
> why
> > it's not working is probably because the LoadQueue
> is
> > busy. If you try and load a url that doesn't exist
> (or
> > the document is empty) then LoadPanel doesn't
> receive
> > an onload event, and doesn't run the handler that
> > unlocks the queue. It sounds like the resize is
> > causing it to try and load a bogus document, which
> > blocks the queue.
> >
> > You said in another post that images weren't
> loading.
> > which browser are you using? and what version on
> the
> > api?
> >
> > cheers,
> >
> > cam.
> >
> >
> > --- Doug Melvin <[EMAIL PROTECTED]>
> wrote: >
> > My previeous message covers that.
> > >
> > > the CoreSkinWindow has a members called 'canvas'
> > > this is where all of the skinwindow's children
> are
> > > added.
> > > The object WAS a Dynlayer but I changed it to a
> > > LoadPanel so that I could
> > > take advantage of setURL.
> > > Problem.
> > >
> > > When I resize the SkinWindow, (such as when the
> > > toolbar is moved see:
> > >
> http://www.creative-workshop.com/demo/cwconcept.htm)
> > > setURL no longer works.. the HTMl in the
> > > Skinwindow's "canvas" is lost
> > > and no number of setURL calls wil rescue it.
> > >
> > > If you can help me find out why this is I would
> be
> > > much indepted.
> > >
> > > Doug Melvin
> > > ----- Original Message -----
> > > From: "Robert Rainwater" <[EMAIL PROTECTED]>
> > > To: "DynAPI Help List"
> > > <[EMAIL PROTECTED]>
> > > Sent: Monday, January 15, 2001 9:22 AM
> > > Subject: Re: [Dynapi-Help] arg!
> > >
> > >
> > > >
> > > > Why are you even using a loadpanel if you are
> only
> > > using setHTML.
> > > > setHTML if available to all dynlayers.
> > > >
> > > > What is not working with setURL.  I've been
> using
> > > it for weeks without
> > > > a problem.
> > > >
> > > > --
> > > > // Robert Rainwater
> > > >
> > > > On 1/15/2001, 2:21:15 PM EST, Doug wrote about
> > > "[Dynapi-Help] arg!":
> > > >
> > > > > I am using setHTML with a loadpanel (as
> setURL
> > > doesn't seem to work).
> > > > > Problem: Images don't always load in the
> > > loadpanel..
> > > > > help?
> > > >
> > > >
> > > >
> > > >
> _______________________________________________
> > > > Dynapi-Help mailing list
> > > > [EMAIL PROTECTED]
> > > >
> > >
> >
>
http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > >
> > >
> > > _______________________________________________
> > > Dynapi-Help mailing list
> > > [EMAIL PROTECTED]
> > >
> >
>
http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail.
> > http://personal.mail.yahoo.com/
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> >
>
http://lists.sourceforge.net/lists/listinfo/dynapi-help
> 
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/dynapi-help
> 
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

loadpanel.zip

Reply via email to