Forum Moderators: open

Message Too Old, No Replies

iframe meta refresh in Konqueror/Safari

         

encyclo

7:48 pm on Jun 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I needed to have a a small "slideshow" on a page where the image changes automatically every 10 seconds (I'd like to thank my client for this wonderful concept). The spec for the site says that it must work without Javascript (I'd like to thank my client... OK you get the idea!)

No problem: I used my regular PHP random image script, then used a simple iframe to display it. So on my regular page I have:

<iframe src="imgframe.html" width="150" height="140" frameborder="0" scrolling="no"></iframe>

and the

imgframe.html
page is simply:

<html><head>
<META HTTP-EQUIV="refresh" content="10">
<title></title>
</head>
<body marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<img src="/front/fimg.php" border="0" alt="text here">
</body></html>

This works perfectly in IE6, Firefox and Opera. However Konqueror does not refresh the iframe automatically, and I believe Safari doesn't either. Does anyone know if this is a known bug or if there is a workaround (preferably non-JS)? My client (naturally) are a 100% Apple shop using Safari.

BlobFisk

11:43 am on Jun 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ouch, no scripts? Did you find the reasons for this? Is it for accessibility? Maybe a link on the page to do the same thing as the refresh will address this?

I have not seen any bug about this before and have seen meta refresh work on Safari...

coopersita

3:39 pm on Jun 14, 2005 (gmt 0)

10+ Year Member



I tried your html in Safari 1.3, and if works as expected...

Another option would be a Flash animation (if they let you)

encyclo

5:10 pm on Jun 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ouch, no scripts? Did you find the reasons for this? Is it for accessibility?

The original functional requirements for the site were written in 1841 when primitive HTML was still scratched onto parchment and sent by carrier pidgeon. The person who wrote them was almost afraid of using images, so using Javascript was completely out of the question. The original author has moved on and the company is still sticking to its original requirements even though several eons have passed. I had to build a custom CMS because it had to be 100% functional in Netscape 4 (not just the site, the back end too!). But they're a good client, so you just have to go slowly and respect their conservatism...

The company threw out their last machine with Netscape 4 a couple of months back, and I'm not really supposed to be using an iframe either (no iframes in NN4 - I could use a

<layer>
as backup but life's too short), and the refreshing image is merely decorative so I'll just keep quiet and hope they don't notice.

I sneaked into a few of their offices today and the problem appears to be only with certain older versions of Safari and Konqueror (notably the latest Konq 3.4). I think I'm just going to have to put up with the inconsistency and merely report the bug to the KHTML developers. Thanks for the comments!