From: Josep M. i T. <jm...@ne...> - 2000-12-15 05:46:15
|
Hi Dan! I've downloaded the latest additions from the CVS and I've seen that now the resize fix for NS4 doesn't work at all. With few changes it works again: I think DynLayer_flagDeleteChildren is wrong, I think it should be: function DynLayer_flagDeleteChildren(dlyr) for (var i=0; i<dlyr.children.length; i++) { if (dlyr.children[i].created) dlyr.children[i].deleteElement(); } }; And the loop in recreateAll should be: for (var i=0; i<this.children.length; i++) this.children[i].deleteElement(); DynLayer_createElement(this.children[i]); } This way all the samples resize well except scrollpane (I haven't looked into it). In my previous posts (and my DynImage comment), I think you understood that I had problems when resizing the widget and I meant that I had problems when resizing the browser window. So the problems persist and I think the changes I had suggested before are still valid. I've explained the problem in a lot of posts, simply "this.doc.images[this.id+'Image'].src = this.img.src;" style of changing images wont work after a browser window resize in NS4. BTW, why do you use DynLayer_xxx(dlyr) syntax rather than the old one? Regards, Josep -----Mensaje original----- De: Dan Steinman <dy...@fu...> Para: dyn...@li... <dyn...@li...> Fecha: miércoles 13 de diciembre de 2000 22:49 Asunto: Re: [Dynapi-Dev] Re: dynimage.js (gui) - update.. but still a problem That change won't be needed, it works slightly differently now, and for all I can tell it works perfeclty in Netcape. Dan On Wed, Dec 13, 2000 at 07:26:34PM +0100, Josep Monés i Teixidor wrote: > Hi Dan! > > I posted yesterday that I had a problem changing the images from a widget > after a resize in NS4. I've noticed that DynImage has the same problem. But > the way dynimage is made, makes it very easy to solve this problem. I've > simply changed: > > if (!this.created || bRedraw) { > this.setHTML('<img name="'+this.id+'Image" src="'+imgObject.src+'" > width='+this.w+' height='+this.h+' border=0>'); > } > > to: > if (!this.created || bRedraw || is.ns4) { > this.setHTML('<img name="'+this.id+'Image" src="'+imgObject.src+'" > width='+this.w+' height='+this.h+' border=0>'); > } > > in setImage > > You can see the original dynimage here: > http://llibertat.com/ateneu24/fires2000/prova.html > > and the modified one here: > http://llibertat.com/ateneu24/fires2000/prova2.html > > > I'd like it could be possible to solve this problem without redrawing. I've > tried to redraw the tag changing the name value after each resize. And it > seems to work, but NS 4.7 always crashes in a short time. > > > The timer stuff? > To periodically check if the images are loaded and invoke the handlers. > > Best regards, > > Josep > > > > > -----Mensaje original----- > De: Dan Steinman <dy...@fu...> > Para: dyn...@li... <dyn...@li...> > Fecha: miércoles 13 de diciembre de 2000 15:49 > Asunto: Re: [Dynapi-Dev] Re: dynimage.js (gui) - update.. but still a > problem > > > >I have made some significant changes to DynImage and DynLayer (not in CVS > yet), and currently I commented out the Load timers altogether, I never > really understood what they were for. Everything works without it, you can > use getImage() before DynLayer.onLoad() with no troubles. > > > >Can someone explain why all the load timer stuff is needed? > > > >Dan > > > >On Tue, Dec 12, 2000 at 09:24:18PM -0800, b0n3z wrote: > >> Well I seem to have found part of the problem from a previous e-mail > below.. but there is something still strange about this. If you refresh the > page and do not move the mouse... In IE5 on Win2k Pro the spinning E never > seems to stop until you move your mouse - is this correct? > >> > >> Solve for Error in line: 10 below - but doesn't solve the page not > finishing the load (when mouse is not moved) > >> > >> ----------------------------------------------- > >> Hi! > >> > >> I think I've found a bug in dynimage.js that shows up in NS4.7 but not in > >> IE4 (NS6 hangs on my Win NT 4.0 :-( ). > >> > >> File: gui/dynapi.js > >> File date: 20:27, 8 Dec 2000; taken from the beta .zip in SourceForge > >> yesterday. > >> Line: 100 > >> was: DynImage.timerId=setTimeout(DynImage+'.loadercheck()',25); > >> should be: DynImage.timerId=setTimeout('DynImage.loadercheck()',25); > >> > >> Best regards, > >> > >> Josep > >> > >> ----- Original Message ----- > >> From: b0n3z > >> To: dyn...@li... > >> Sent: Tuesday, December 12, 2000 9:12 PM > >> Subject: dynimage.js (gui) > >> > >> > >> Using the latest snapshot build on > http://dynapi.sourceforge.net/snapshot/ it seems that dynimage.js has a > problem in it. Locally the example of dynapi.gui.dynimage.html seems to work > fine.. but when on a site.. it has a problem. Hit the refresh button if the > error doesn't show up the first time. Here is an example > http://www.gotapex.com/b0n3z/beta/dynimage.html > >> > >> Line: 10 > >> Char: 2 > >> Error: Syntax error > >> Code: 0 > >> > >> Thanks goes out to all the Gurus that Eat, Live, Sleep and Breath this > stuff... > >> > >> Ken (aka b0n3z) > >> > >_______________________________________________ > >Dynapi-Dev mailing list > >Dyn...@li... > >http://lists.sourceforge.net/mailman/listinfo/dynapi-dev > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev _______________________________________________ Dynapi-Dev mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |