Is there a way to control elements inside a frame?

by 2 replies
3
#website design #control #elements #frame #inside
  • Usually if it's an iFrame pulling information from another site, you're not going to have any control. At least that's been my experience.

    I've built plugins that using iframe and there's simply no way to change what comes through unless it's on your servers.

    Darren

  • As 4under said above its impossible to modify iframe content...

    One method you 'could' use is, load the iframe content via PHP (CURL or similar), then do a string replace to remove the target="_top" and serve that modified content to the lightbox.

Next Topics on Trending Feed

  • 3

    I have a site that I'm working on that is using a lightbox. The lightbox opens up a page to an e-commerce script that I bought which is a hosted solution (not on my server). I have no control of the source code on the page that I'm loading in the lightbox but I'm running into a problem. When you submit the form in the lightbox, the results come back replacing the parent (whole page). Therefore the lightbox is gone and the user is actually on the other site which is nothing but the results.