473,396 Members | 1,676 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,396 software developers and data experts.

Redirect problem in IE

I use an inlineframe to display pages with images with javascript pop up
links. These image pages redirect to each other with the trusted <meta
http-equiv="refresh" content="10; url=vb9.htm"> metatag.

Now this works perfectly well in Netscape and Firefox, but Internet Explorer
is spoling the fun. After you click an image to open the popup box, the
image pages (in the inlineframe) won't refresh anymore. As long as you don't
click an image, there's nothing wrong.
Now, I've tried another popup script, but the effect was the same - so the
pop up is not the problem.

I also tried a different redirect script:

<SCRIPT LANGUAGE="JavaScript">
<!-- begin hiding JavaScript from old browsers
// define redirect function
// change redirect2.htm to required destination
function redirect(){
parent.location.href="vb9.htm"
}
// End hiding JavaScript -->
</SCRIPT>

.... but this one does not open the new page in the inlineframe, but on top.

Any suggestions as how to make this work?

Martin van Duijn - va*********@zonnet.nl
Nov 4 '05 #1
4 2801
Van Duijn wrote:
I use an inlineframe to display pages with images with
javascript pop up links. These image pages redirect to
each other with the trusted
<meta http-equiv="refresh" content="10; url=vb9.htm">
metatag.
IE->Tools->Internet Options... ->Security ->[select
zone->(Internet)]->Custom Level... ->Micellanious -> Allow META
REFRESH -> Disable/Enable

Trusting something that can be switched off independently of scripting
is not a good plan.
..., but Internet Explorer is spoling the fun. After
you click an image to open the popup box, the image
pages (in the inlineframe) won't refresh anymore. As
long as you don't click an image, there's nothing wrong.
So on Internet Explorer (only) the act of clicking something suddenly
renders the browser partly non-functional? You haven't, by any chance,
wrapped your image in:-

<A href="javascript:something();"><IMG ... ></A>

-?
Now, I've tried another popup script, but the effect
was the same - so the pop up is not the problem.

I also tried a different redirect script:

<SCRIPT LANGUAGE="JavaScript">
<!-- begin hiding JavaScript from old browsers
// define redirect function
// change redirect2.htm to required destination
function redirect(){
parent.location.href="vb9.htm" ^^^^^^ }
// End hiding JavaScript -->
</SCRIPT>

... but this one does not open the new page in the
inlineframe, but on top.


The - parent - of a frame is the window that contains the frame. You are
asking the browser to load the page in the parent and it is doing so.
Replace - parent - with - window - and it probably will work better.

Richard.
Nov 4 '05 #2
Thanks! It works fine now. Just can't believe I did not see that I should
have changed "parent" to "window".

"Richard Cornford" <Ri*****@litotes.demon.co.uk> schreef in bericht
news:dk*******************@news.demon.co.uk...

I also tried a different redirect script:

<SCRIPT LANGUAGE="JavaScript">
<!-- begin hiding JavaScript from old browsers
// define redirect function
// change redirect2.htm to required destination
function redirect(){
parent.location.href="vb9.htm"

^^^^^^
}
// End hiding JavaScript -->
</SCRIPT>

... but this one does not open the new page in the
inlineframe, but on top.


The - parent - of a frame is the window that contains the frame. You are
asking the browser to load the page in the parent and it is doing so.
Replace - parent - with - window - and it probably will work better.

Richard.

Nov 7 '05 #3
Thanks! It works fine now. Just can't believe I did not see that I
should have changed "parent" to "window".

*** Sent via Developersdex http://www.developersdex.com ***
Nov 7 '05 #4
Van Duijn wrote:
Thanks! It works fine now. Just can't believe I did not
see that I should have changed "parent" to "window".
Fair enough. It would have been nice to have an answer to my question
about whether you were using a link with a javascript pseudo-protocol
HREF around the image. I don't need the answer myself as I already know
that you were (the diagnosis from the symptoms is sufficient in this
case). But there are those who would prefer to dismiss IE's many
problems with javascript pseudo-protocol HREFs and it would have been
good to bring yet another example to their attention.
Richard Cornford schreef:

<snip>

Please don't top-post to comp.lang.javascript, you will find it counter
productive in the long run (though may not actually observe the
consequences).

Richard.

Nov 23 '05 #5

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

Similar topics

10
by: Bob Garbados | last post by:
forgive my ignorance, as I'm new to php coming from a ms background... If I create a page named redirect.php and it's only content is: <?php header("Location: http://www.google.com"); ?>...
3
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect...
7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I think this code is a basic redirect: <script...
1
by: Peter Kirk | last post by:
Hi there I have a program written by another company (it's a "web control" which returns a web-page: can I compare this to a servlet in the Java world?), which they think is causing problems on...
2
by: Mark Dengler | last post by:
Is it possible to do a Response.Redirect to multiple URLs? I have tried the following and it simply ignores the first redirect: Response.Redirect("test.aspx", false);...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
6
by: Peter Row | last post by:
Hi, I am writing a DLL in VB.NET that implements IHttpHandler.ProcessRequest. This code calls a sub and I need to know if that sub did a response redirect or not. Specifically I need to know...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
10
by: Eirik Eldorsen | last post by:
How can I 301 redirect www.example.com/default.aspx to www.example.com without using ISAPI filters?
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.