471,049 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,049 software developers and data experts.

opera doesn't reload iframe

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>

Aug 8 '06 #1
0 1627

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Albert Wagner | last post: by
4 posts views Thread by Howard Jess | last post: by
5 posts views Thread by Paul Fi | last post: by
7 posts views Thread by fh | last post: by
6 posts views Thread by Stefan Mueller | last post: by
5 posts views Thread by Chen Zhigao | last post: by
2 posts views Thread by juergen.riemer | last post: by
1 post views Thread by spolsky | last post: by
7 posts views Thread by Raffi | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.