Re: Iframe question

Discussion in 'HTML' started by Neredbojias, Nov 5, 2009.

  1. Neredbojias

    Neredbojias Guest

    On 04 Nov 2009, sheldonlg <sheldonlg> wrote:

    > I have never handled Iframes before and I don't know if this is
    > possible.
    >
    > I currently have a page with an Iframe. Inside of that Iframe is an
    > external web page (this is what the customer specifically wanted).
    > This works fine (although there is a bit of scrolling introduced due
    > to its capture).
    >
    > Now, when a link inside that that external web page that is in the
    > Iframe is clicked, it takes over the whole parent page and doesn't
    > stay within the Iframe. Is there a way to keep it confined to the
    > Iframe and only have the contents of that Iframe change to the linked
    > page?
    >
    > I have searched Google, but found nothing about navigating links
    > inside of Iframes, just how to get pages initially into the Iframe.


    After reading the above and all the replies to minute, let me say this
    about them.

    Perhaps all you have to do is remove the target attribute and validate
    the page.

    It's pretty easy to prevent pages from being framed by external
    websites. If the framed-page author has taken any such steps, you're
    out of luck.

    --
    Neredbojias
    http://www.neredbojias.org/
    http://www.neredbojias.net/
     
    Neredbojias, Nov 5, 2009
    #1
    1. Advertising

  2. Neredbojias

    BootNic Guest

    On Thu, 05 Nov 2009 13:22:51 -0500
    sheldonlg <sheldonlg> wrote:

    > Neredbojias wrote:
    >> On 04 Nov 2009, sheldonlg <sheldonlg> wrote:
    >>
    >>> I have never handled Iframes before and I don't know if this is
    >>> possible.
    >>>
    >>> I currently have a page with an Iframe. Inside of that
    >>> Iframe is an external web page (this is what the customer
    >>> specifically wanted). This works fine (although there is a bit
    >>> of scrolling introduced due to its capture).
    >>>
    >>> Now, when a link inside that that external web page that is
    >>> in the Iframe is clicked, it takes over the whole parent page
    >>> and doesn't stay within the Iframe. Is there a way to keep it
    >>> confined to the Iframe and only have the contents of that
    >>> Iframe change to the linked page?
    >>>
    >>> I have searched Google, but found nothing about navigating
    >>> links inside of Iframes, just how to get pages initially into
    >>> the Iframe.

    >>
    >> After reading the above and all the replies to minute, let me
    >> say this about them.
    >>
    >> Perhaps all you have to do is remove the target attribute and
    >> validate the page.

    >
    > It happened even without that target attribute.
    >
    >>
    >> It's pretty easy to prevent pages from being framed by
    >> external websites. If the framed-page author has taken any such
    >> steps, you're out of luck.

    >
    > That seems to be the consensus (even if he did it
    > inadvertantly).


    The page that loads has a frame busting script:

    if(top != self) {top.location.href = location.href;}




    --
    BootNic Thu Nov 5, 2009 05:30 pm
    The human mind treats a new idea the same way the body treats a
    strange protein; it rejects it.
    *P. B. Medawar*

    â• 249 days remaining

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.12 (GNU/Linux)

    iEYEARECAAYFAkrzUiEACgkQmo2774GZ7qlEZQCgp7XtnLU3Fim6YuHydqg5GshL
    jmAAnAphk1lVxPN7dwt7+CHX9hZsOWFy
    =s961
    -----END PGP SIGNATURE-----
     
    BootNic, Nov 5, 2009
    #2
    1. Advertising

  3. On Thu, 05 Nov 2009 13:22:51 -0500, sheldonlg <sheldonlg> wrote:

    >Neredbojias wrote:
    >> On 04 Nov 2009, sheldonlg <sheldonlg> wrote:
    >>
    >>> I have never handled Iframes before and I don't know if this is
    >>> possible.
    >>>
    >>> I currently have a page with an Iframe. Inside of that Iframe is an
    >>> external web page (this is what the customer specifically wanted).
    >>> This works fine (although there is a bit of scrolling introduced due
    >>> to its capture).
    >>>
    >>> Now, when a link inside that that external web page that is in the
    >>> Iframe is clicked, it takes over the whole parent page and doesn't
    >>> stay within the Iframe. Is there a way to keep it confined to the
    >>> Iframe and only have the contents of that Iframe change to the linked
    >>> page?
    >>>
    >>> I have searched Google, but found nothing about navigating links
    >>> inside of Iframes, just how to get pages initially into the Iframe.

    >>
    >> After reading the above and all the replies to minute, let me say this
    >> about them.
    >>
    >> Perhaps all you have to do is remove the target attribute and validate
    >> the page.

    >
    >It happened even without that target attribute.
    >
    >>
    >> It's pretty easy to prevent pages from being framed by external
    >> websites. If the framed-page author has taken any such steps, you're
    >> out of luck.

    >
    >That seems to be the consensus (even if he did it inadvertantly).


    It's not possible to do it *inadvertantly* .....
    .... -> http://www.cryer.co.uk/resources/javascript/script1.htm
     
    Raymond Schmit, Nov 5, 2009
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    682
  2. mi
    Replies:
    4
    Views:
    13,624
    dorayme
    May 21, 2008
  3. elca
    Replies:
    0
    Views:
    577
  4. Scott
    Replies:
    6
    Views:
    952
    [MSFT]
    Apr 14, 2004
  5. Daedalous
    Replies:
    3
    Views:
    705
    Daedalous
    Jan 16, 2004
Loading...

Share This Page