473,416 Members | 1,557 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,416 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 7958

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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.