|
From: Josep M. i T. <jm...@ne...> - 2000-12-13 18:20:59
|
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
|