Greetings,
  Sorry if this posted twice, had an error the first
time and am not sure it went.
  I have been doing a lot of work with images and
DynAPI revolving around Dynimage.  I looked at the
example Jordan posted ([Dynapi-Help] Resizing in
Netscape - Source of the problem) and decided to trace
it step by step back through the resize process.  With
the current snapshot, my example with the original
dynimage file was not even firing the DynAPI onresize
function.  This was due to errors when attempting to
access the doc.images array.  I changed the last two
if statements in the setImage function of dynimage to
put some additional conditions in, one specific to
NS4.
The end results were that the example Jordan posted
now resizes repeatedly without error in ns4.76.

There was also a problem with the .setImageSrc
function under ns4 if autoresize was turned on.  I
changed the code there and it is also working normally
now.  See it in the original dynimage example, set
image source: commands at bottom.

I am attaching the modified dynimage file and I would
appreciate all the feedback on it anyone can provide.
If this is stable, maybe it could be added to
dynimage.

Things I have noticed:
  In NS4, if an animated gif is being used, it is
necessary to reload it after a resize (do it in the
dynapi.onresize function). The image is there, but the
animation is stopped. I am pretty sure this is due to
a browser bug with ns4.  Comments? 

In both ns4 and ns6, the onload portion of dynimage is
hanging when loading a large number of images. 
Checking this reveals that random images never get the
.img.complete flag set to true.  This typically only
occurs when loading from harddrive or on a reload of a
page already in cache (ie, it is loading very
quickly).  This happens with the current Dynimage.  I
am also checking the file formats of the gif images
involved as I have had instances where certain
programs created a gif file that could not be loaded
under ns4 (still researching this one).  
Anyone have any ideas on this?  HELP?

I would appreciate feedback on different browsers with
the modified dynimage.  I tested it on Win98 PC under
ie5.5,ns6, ns4.08 and ns4.76 with no problems.

The file is named dynimagedc.js and is attached in a
zip file.

I also posted Jordan's example to test:
Before changes:
http://www.merlinsworld.net/dynapi_ri_dcexamples/test2orig.shtml
after changes:
http://www.merlinsworld.net/dynapi_ri_dcexamples/test2mod.shtml
original dynimage example orig:
http://www.merlinsworld.net/dynapi_ri_dcexamples/dynimageorig.shtml
original dynimage example mod:
http://www.merlinsworld.net/dynapi_ri_dcexamples/dynimagemod.shtml

Please give me some feedback on this.
Cheers,
Dave C. "You Changed What?!?"


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

dcutil_dcdynimage.zip

Reply via email to