1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iframes question with a twist

Discussion in 'General Programming Chat' started by ShabbySquire, Aug 31, 2013.

  1. ShabbySquire

    ShabbySquire Power Member

    Joined:
    Nov 30, 2011
    Messages:
    574
    Likes Received:
    122
    Location:
    UK
    I've been trying out iframes in WP, and was wondering if something was possible.

    When iframing a site (say an article), is it possible to target keywords in the article and turn them into my own links? There are WP plugins that target any keyword(s) and turns them into any link you want.

    I realize iframes don't 'dump' the content onto your site, so this is probably impossible.
     
  2. ikillppl247

    ikillppl247 Newbie

    Joined:
    Aug 31, 2013
    Messages:
    1
    Likes Received:
    0
    i have the same question
     
  3. lincher

    lincher Junior Member

    Joined:
    Jun 29, 2013
    Messages:
    156
    Likes Received:
    39
    That is not possible.
     
  4. ttrox

    ttrox Regular Member

    Joined:
    Jun 28, 2013
    Messages:
    217
    Likes Received:
    75
    Nope, you can't modify content on an iframe dynamically for security reasons, that is, unless the iframe is from the same protocol and host. Check out http://en.wikipedia.org/wiki/Same-origin_policy in case you want to learn more.

    Maybe it's possible with some hacks, but nowadays I doubt it's possible with modern browsers, and not legal.