Forum Moderators: open

Message Too Old, No Replies

images, iframes and Mozilla

Loading images in iframe for Mozilla

         

Pastorsi

9:48 am on May 2, 2003 (gmt 0)

10+ Year Member



I'm using iframes for the new site I'm building. I have images (jpeg photos) in the iframe. There's no problem with IE but with Mozilla 1.2.1 the images fail to display on "first call". I have to refresh the iframe before they load. Has anyone else had this problem? Does anyone know a solution?

AWildman

6:48 pm on May 14, 2003 (gmt 0)

10+ Year Member



I use iframes extensively for various sites and I've never had a problem like this.

1. Are the pictures in the iframe large? Or are there many small pictures? The only times I've had any problems with having to reload images is when there are too many or one is too large.

2. Do you do anything to the iframe page onload so that the image loading may be interrupted?

Pastorsi

9:40 pm on May 14, 2003 (gmt 0)

10+ Year Member



Thanks for your response.

The pictures aren't large or many. Nothing is done to the iframe onload that might interrupt image loading. It's a simple html page that's called by a href link.

This problem may be peculiar to my set up, ie, Linux - Gnome - Mozilla 1.2.1

Anyway I've solved the problem now. I did it by writing a javascript that detects if the image(s) have loaded and if it hasn't then (and only then) the script has the page reload.

Brett_Tabke

4:52 am on May 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



That does sound weird for moz. How are you building the iframe? Is it stock embedded code, or code built from js?