Opera doesn't refresh IFrame

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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?.

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

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

---- 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()
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">

Quoted text here. Click to load it

Page loaded...
<% End If %>

Re: Opera doesn't refresh IFrame

spolsky wrote:
Quoted text here. Click to load it
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

Site Timeline