Results 1 to 4 of 4

Thread: How to redirect iframe in PHP

  1. #1
    Join Date
    Dec 2008
    Posts
    51

    How to redirect iframe in PHP

    I have developed a personal website there I have setup an <iframe> in the body of the website. Normally, this iframe displays a PHP based page. Is it possible to put any java script that I can put into iframe.html so it will be redirecting main page? How do I redirect a website that will be displaied inside an iframe in a form?

  2. #2
    Join Date
    Jan 2009
    Posts
    143

    Re: How to redirect iframe in PHP

    Create a user control and insert an iFrame. You may have to go to HTML tab and enter code there. The method, window.open() stops working if the IFrame's zone has not been given adequate time to be resolved, i.e. "Unknown Zone".

    <iframe name="iframename" id="iframename" src="http://sitename.com" width="658" height="600" scrolling="auto" frameborder="no" bordercolor="#fffffff" marginwidth="0" marginheight="0"></iframe>

  3. #3
    Join Date
    Mar 2008
    Posts
    192

    Re: How to redirect iframe in PHP

    Do you want the JavaScript to redirect the iframe page to the main page? use .htaccess to 301 or 302 redirect. that is the prefered way, particularly for search engines. Put the URL in the iFrame src property or in the code, type in the following: FRAME1.Attributes.Add("src", "http://localhost/myPage/myPage.aspx")

  4. #4
    Join Date
    Feb 2009
    Posts
    105

    Re: How to redirect iframe in PHP

    Isolated the problem and believe it is a bug. The method, window.open() stops working if the IFrame's zone has not been given adequate time to be resolved, Based on his ongoing investigation, the attacks seem to be continuing unabated. I just need to redirect the Main page to whenever I need, using java script inserted into iframe.html.

Similar Threads

  1. Link outside of an iframe
    By Allison in forum Software Development
    Replies: 5
    Last Post: 07-01-2011, 06:15 PM
  2. What is Mal/Iframe-E?
    By Hecter in forum Networking & Security
    Replies: 4
    Last Post: 04-02-2010, 05:46 AM
  3. How to use Iframe tag in javascript
    By Walter89 in forum Software Development
    Replies: 3
    Last Post: 30-06-2009, 11:39 PM
  4. How to use iFrame?
    By Jason Bourne in forum Software Development
    Replies: 4
    Last Post: 18-05-2009, 06:13 PM
  5. No Border In iframe
    By QUINEISHA in forum Software Development
    Replies: 2
    Last Post: 16-05-2009, 01:04 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,699,054.02507 seconds with 16 queries