Redirect page problem with IE

V

Van Duijn

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 - (e-mail address removed)
 
B

brucie

I use an inlineframe to display pages with images with javascript pop up
links.

what happens when the visitor doesn't have frames or JS for whatever
reason?
These image pages redirect to each other with the trusted <meta
http-equiv="refresh" content="10; url=vb9.htm"> metatag.

i wouldn't call it trusted, its nonstandard (works in the browsers that
matter) and it can be disabled (unusual).
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.

the bastard! one of those cute url thingys to the page would help a lot in
solving your issues and heres an alternative that you may be able to adapt
for your use: http://slide.usenetshit.info/
 
D

Duende

On 04 Nov 2005 brucie wrote in alt.html
i know but you still get the file

if you fix it i will tell you how to get those cool little pictures next to
your address
 
D

Duende

On 04 Nov 2005 brucie wrote in alt.html
host runs php as a cgi so the giggly phps thingy doesn't work and i'm too
lazy to write <? highlight_file('flowers'); ?> shit! you just made me
write it then, well theres no way i'm writing it a second time.

need a new host?
 
B

brucie

if you fix it i will tell you how to get those cool little pictures next to
your address

ok, its done (for the balls and butterflies as well) now tell me gowd
damnit!
 
D

Duende

On 04 Nov 2005 brucie wrote in alt.html
ok, its done (for the balls and butterflies as well) now tell me gowd
damnit!

Pink gaffers tape. just don't resize your window.
 
T

Toby Inkster

brucie said:
host runs php as a cgi so the giggly phps thingy doesn't work and i'm too
lazy to write <? highlight_file('flowers'); ?> shit!

My standard bit to copy and paste at the start of any example PHP files:

if ($_GET['source'])
{
highlight_file($_SERVER['SCRIPT_FILENAME']);
exit;
}
 
D

Duende

host runs php as a cgi so the giggly phps thingy doesn't work and i'm too
lazy to write <? highlight_file('flowers'); ?> shit!

My standard bit to copy and paste at the start of any example PHP files:

if ($_GET['source'])
{
highlight_file($_SERVER['SCRIPT_FILENAME']);
exit;
}
[/QUOTE]

Demo?
 
V

Van Duijn

Fixed it by using

<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>

and changing "parent" to "window". Just didn't see it before...
 
B

brucie

Question, you have:
['SCRIPT_FILENAME']);exit;}

yes, its a very simple bit of giggly code, easy to read and tell what it
does so i don't bother with multiple lines to improve legibility.
I have been led to believe that there needs to be a return after the ; like
this:

['SCRIPT_FILENAME']);
exit;}

Does it not need a return?

thats a new one on me, AFAIK php is insensitive to white space/hard returns
etc. ask a php guru, theres one over there -->

<pokes toby with my pointy stick to get his attention/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top