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!

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.