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("f ield1")
Response.Write( Session("field1 ") & "<br>")
%>
<iframe name="menu" src="menu.asp" width="200" height="150">
</iframe>
</body>
</html>
---- menu.asp ----
<%
Sub DisableCaching( )
Response.Expire s = 60
Response.Expire sabsolute = Now() - 1
Response.AddHea der "pragma","n o-cache"
Response.AddHea der "cache-control","priva te"
Response.CacheC ontrol = "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.as p" 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>