Click here to get back home

Opera doesn't refresh IFrame

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Opera doesn't refresh IFrame spolsky 08-08-2006
Posted by spolsky on August 8, 2006, 9:52 am
Please log in for more thread options


hi,
i have the following pages. when form submitted with the field1 value
is "ok" then the iframe must be loaded with the text "Page loaded...".
This works fine with IE 6 and FireFox(1.5) but Opera (9.01) does not
refresh the iframe and loads the page for iframe from the cache, so
refreshing the page gets the iframe refreshed with the new page. If
DisableCaching() function used which disables all kind of caching then
Opera works fine. So, i want to know that if this is the only way to
get the Opera refresh the iframe. Are there any html work around
or javascript solutions for it?.
thanks

---- main.asp ----
<html>
<body>
<%
Session("field1") = Request.Form("field1")
Response.Write(Session("field1") & "<br>")
%>


<iframe name="menu" src="menu.asp" width="200" height="150">
</iframe>
</body>
</html>


---- menu.asp ----
<%
Sub DisableCaching()
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
End Sub
' Call this to disable caching for Opera to refresh the iframe.
' DisableCaching()
%>
<html>
<body>
<%
If Session("field1") <> "ok" Then %>
<form method="post" action="main.asp" target="_parent">
<input name="field1" type="text" size="20" />
<input name="field2" type="text" size="20" />
<input type="submit" value="Ok">
</form


><% Else %>


Page loaded...
<% End If %>
</body>
</html>


Posted by wolfing1 on August 8, 2006, 5:23 pm
Please log in for more thread options



spolsky wrote:
> hi,
> i have the following pages. when form submitted with the field1 value
> is "ok" then the iframe must be loaded with the text "Page loaded...".
> This works fine with IE 6 and FireFox(1.5) but Opera (9.01) does not
> refresh the iframe and loads the page for iframe from the cache, so
> refreshing the page gets the iframe refreshed with the new page. If
> DisableCaching() function used which disables all kind of caching then
> Opera works fine. So, i want to know that if this is the only way to
> get the Opera refresh the iframe. Are there any html work around
> or javascript solutions for it?.
> thanks
>
> ---- main.asp ----
> <html>
> <body>
> <%
> Session("field1") = Request.Form("field1")
> Response.Write(Session("field1") & "<br>")
> %>
>
>
> <iframe name="menu" src="menu.asp" width="200" height="150">
> </iframe>
> </body>
> </html>
>
>
> ---- menu.asp ----
> <%
> Sub DisableCaching()
> Response.Expires = 60
> Response.Expiresabsolute = Now() - 1
> Response.AddHeader "pragma","no-cache"
> Response.AddHeader "cache-control","private"
> Response.CacheControl = "no-cache"
> End Sub
> ' Call this to disable caching for Opera to refresh the iframe.
> ' DisableCaching()
> %>
> <html>
> <body>
> <%
> If Session("field1") <> "ok" Then %>
> <form method="post" action="main.asp" target="_parent">
> <input name="field1" type="text" size="20" />
> <input name="field2" type="text" size="20" />
> <input type="submit" value="Ok">
> </form
>
>
> ><% Else %>
>
>
> Page loaded...
> <% End If %>
> </body>
> </html>
I found that problem too and the way I fixed it was, sending a random
number in the querystring. That way Opera will not use the cache


Similar ThreadsPosted
opera doesn't reload iframe August 8, 2006, 6:28 am
JPG needs refresh button to appear September 13, 2004, 4:21 pm
JPG needs refresh button to appear September 13, 2004, 4:21 pm
dead images after refresh August 23, 2004, 1:06 pm
Website needs refresh to change May 15, 2007, 10:06 am
subwindow - refresh parent July 23, 2007, 2:56 am
Is there an equivalent of META REFRESH in PDF? October 19, 2007, 3:50 am
How to periodically refresh content of my page? June 11, 2006, 7:51 am
How to keep
from re-submitting on page refresh...
July 31, 2007, 2:49 pm
refeshing pull down menu without page refresh December 20, 2004, 7:45 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap