Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

iframed Responsive/Adaptive Content

Any Possible Resolution for Framed Content

5:21 pm on Feb 24, 2015 (gmt 0)

Full Member

10+ Year Member

joined:Oct 9, 2002
posts: 245
votes: 0

We've crafted a good solution for a legacy advertising product that is basically a .jpg and an image map (yes, an image map). This format works well due to high volume, quick turnaround. Using CSS media queries and background positioning we've achieved a more than presentable mobile-friendly version. Unfortunately in addition to being displayed on our website many of our clients display it iframes on their own websites. The responsive version of course fails when framed. We don't have or want access to the clients' web provider's html. Can anyone think of a possible solution?
2:24 pm on Mar 6, 2015 (gmt 0)


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 2

Offer a JavaScript solution to your customers. If they decide to stick with iframe, well, what can you do? Go old school and bust the frame?
if (top.location != self.location) {
top.location = self.location.href;

Your customers may not like that though. So if that is not a viable solution perhaps you could just detect and display a message at the very top of the iframe and offer a "View this page in a new tab" option?

I have found the best way to offer this type of data has been via JavaScript or offer advanced users an API. If they decide to frame it, well, sometimes it is what it is. Unfortunately.
4:22 pm on Mar 6, 2015 (gmt 0)

Full Member

10+ Year Member

joined:Oct 9, 2002
posts: 245
votes: 0

Thanks Coopster - We have pretty much just let them know that our ad can only be as adaptive/responsive as the page it's framed on. Ball's in their court now.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members