Jump to content

Iframe that links to a php page opens in a new window


chrishau

Recommended Posts

Hi!

 

I am trying include an old booking script from an old website in a iframe so that I don't have to rewrite the entire thing. The problem is that when I access the site where I have the iframe the browser immediately gets redirected to the php page itself... Anyone know a workaround for this? I am using wordpress and the link to the site with the iframe is:

 

http://org.ntnu.no/seiling/?page_id=9&langswitch_lang=no

 

And this is the ifram code that I am trying out:

<iframe src ="http://www.ntnui.no/seiling/oldpage/leie.php" width="300" height="300">

</iframe>

 

Thank you in advance!

i think there is some javascript window.location script on that page or somewhere that is redirecting you.

 

otherwise if you write

<iframe src ="http://www.ntnui.no/" width="300" height="300"></iframe>

 

then this site opens fine and doesnt redirect you.

 

vineet

 

Yeah, I tried other websites as well and it works fine. It is just that the calendar php script that I want on my site is located at http://www.ntnui.no/seiling/oldpage/leie.php. And I cannot find any javascript references in the php scrip that is run on that site. I would be happy to share the code with someone if they could help me with it, but as the code is not mine I would have to send it privately.

 

Thanks in advance!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.