473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Opera doesn't refresh 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 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>

Aug 8 '06 #1
1 7955

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

Aug 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: DraguVaso | last post by:
Hi, I have a Windows Service running (made in VB.NET), and wanted to be able to change from time to time some parameters by changing them in the App.config. But it seems that the application...
2
by: John | last post by:
Hi. When I use VB.NET projects, Visual Studio refreshes the display when I correct errors. (i.e. removes the blue and red lines under syntax errors etc.) But when I use C# projects, the display...
8
by: TS | last post by:
Im in a web page and call an asynchronous method in business class. the call back method is in the web page. When page processes, it runs thru code begins invoking the method then the page...
0
by: spolsky | last post by:
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...
3
by: Ned Balzer | last post by:
Hi all, I posted this question some time ago in an earlier thread but so far I still don't have an understanding of why this is happening or what I can do to fix it. I use Session variables,...
1
by: Orit | last post by:
Hi . I am creating an ASP.NET 2.0 web site and have the following problem : 1. I have a GridView which bound to the object data source. 2. This object data source is SQL Table adapter that I...
7
by: seanmatthewwalsh | last post by:
Hi I have a page (default.aspx) that pulls it's HTML from a database. I then have a "content management" page (editpage.aspx) that allows the user to edit the HTML in the database. When the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.