I've cobbled together a script that should load a picture in a new,
automatically sized window. Because the image.height and image.width may be
0 if I test them right away, I use setTimeout to loop until they are both
not zero. I've run into two problems:
- In IE, the script doesn't seem to loop. If the picture isn't already
cached, nothing appears to happen; if it is in cache, the window (rather
slowly) opens up.
- In Netscape, the script also doesn't seem to loop properly. (Yes, I'll
revisit all of that.) However, even if the picture does pop up I get the
following message in the js console: Security Error: Content at
http://www.uahc.org/ct/ct015/photos2.html may not load data from
about:blank.
That last bit really puzzles me.
--
Regards,
Jerry Schwartz
automatically sized window. Because the image.height and image.width may be
0 if I test them right away, I use setTimeout to loop until they are both
not zero. I've run into two problems:
- In IE, the script doesn't seem to loop. If the picture isn't already
cached, nothing appears to happen; if it is in cache, the window (rather
slowly) opens up.
- In Netscape, the script also doesn't seem to loop properly. (Yes, I'll
revisit all of that.) However, even if the picture does pop up I get the
following message in the js console: Security Error: Content at
http://www.uahc.org/ct/ct015/photos2.html may not load data from
about:blank.
That last bit really puzzles me.
--
Regards,
Jerry Schwartz
Comment