Click here to get back home

opera doesn't reload 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 reload iframe spolsky 08-08-2006
Posted by spolsky on August 8, 2006, 6:28 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 but loads the page for iframe from the cache. 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 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>


Similar ThreadsPosted
Opera doesn't refresh IFrame August 8, 2006, 9:52 am
tag to provoke reload February 12, 2007, 2:18 pm
Memory clearing and reload. January 23, 2005, 3:00 pm
how to reload only part of html ? July 24, 2005, 12:42 am
Form Reload with Tainted Values April 28, 2008, 5:13 pm
Opera bug workaround July 28, 2004, 11:58 am
Opera 9.5 final is here... June 13, 2008, 1:29 pm
Only clean text in Opera, why ? December 23, 2004, 12:48 pm
Mozilla/Opera Scrollbars January 19, 2006, 4:40 pm
Opera rendering problem? January 31, 2008, 12:42 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap