Results 1 to 4 of 4

Thread: load a frame which cannot be loaded in a frame... in a frame

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2003
    Location
    england
    Posts
    161

    load a frame which cannot be loaded in a frame... in a frame

    hi, ok firstly, there is a webpage which cannot be displayed in a frame. however, i want to include it on my website in an iframe.

    so, firstly, i'm wondering how is the page coded so that it cannot be loaded in a frame? and then... how can i get around that?

    note: due to limitation on how the page is alreadys etup, what would be best is if i loaded a file from my local server in the frame, which then redirected to the page which cannot be loaded in the frame, with that page... tricking the page it redirects to into thinking it is not in an iframe? something like that....

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Oct 2003
    Location
    england
    Posts
    161
    ok, lol i checked out how the page checks if it is in a frame or not, it is like so:

    Code:
    <script language="JavaScript">
    <!--
    if (self != top)
    {
        alert('Page cannot be loaded inside frame...')
        location.replace("http://www.google.com");
    }
    -->
    </script>
    ok? so, i presume i have to make 'top' equal the frame url. can this be done in javascript or something? (without actually redirecting the page...)

    i know VERY little javascript.

  3. #3
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    You cannot edit "top" without changing the actual URL.

    No client side script can bypass this. You could ask your visitor's to turn off JavaScript, but then you'll just run into other problems. Primarily that they don't want to.

    In PHP you can grap the pages source, then chop off the bits you don't want, then only use what you want. The problem with this is that you need PHP to do it. To run PHP you need a server which supports it. If you have a www.yourname.com, it might do it, but no free hosts support PHP.
    Have I helped you? Please Rate my posts.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2003
    Location
    england
    Posts
    161
    Originally posted by Acidic
    You cannot edit "top" without changing the actual URL.

    No client side script can bypass this. You could ask your visitor's to turn off JavaScript, but then you'll just run into other problems. Primarily that they don't want to.

    In PHP you can grap the pages source, then chop off the bits you don't want, then only use what you want. The problem with this is that you need PHP to do it. To run PHP you need a server which supports it. If you have a www.yourname.com, it might do it, but no free hosts support PHP.
    ah, ok, thanks. actually, hostultra, lycos, and a few others have php installed on their free hosting plans. I have paid hosting so that doesnt matter anyway. thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width