• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

iFrame code quit working

Participant ,
Jun 13, 2018 Jun 13, 2018

Copy link to clipboard

Copied

I have a number of customers who are B2B distributors to contractors.  They generally rep or at least supply products from many different manufacturers.  Just as google provides an iFrame embed to see their maps, I put an iFrame to embed the manufacturers websites which carry the latest specifications, etc.  Anyway, whereas Google's iFrame embed still works, my manufacturer embeds all quit working.  Here's the code I used:

<iframe width="100%" height="2000px" src="http://www.themanufacturer.com/" frameborder="0"></iframe>

Now for comparison here's a working Google Map embed:

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d98466.00726309055!2d-82.48108851258877!3d39.53..." width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

Google's works but mine doesn't.  I even changed my code to more closely mimic theirs and it still didn't work.  The site I'm trying to embed is not ssl whereas mine is, but even so there should at least be a warning of some type popping up into that iFrame.

<iframe src=""width="100%" height="450" frameborder="0" style="border:0" allowfullscreen><iframe>

Any help appreciated.  Thanks!

Views

680

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 13, 2018 Jun 13, 2018

BG  wrote

I have a number of customers who are B2B distributors to contractors.  They generally rep or at least supply products from many different manufacturers.  Just as google provides an iFrame embed to see their maps, I put an iFrame to embed the manufacturers websites which carry the latest specifications, etc.  Anyway, whereas Google's iFrame embed still works, my manufacturer embeds all quit working.  Here's the code I used:

<iframe width="100%" height="2000px" src="http://www.themanufacturer.com/

...

Votes

Translate

Translate
LEGEND ,
Jun 13, 2018 Jun 13, 2018

Copy link to clipboard

Copied

BG  wrote

I have a number of customers who are B2B distributors to contractors.  They generally rep or at least supply products from many different manufacturers.  Just as google provides an iFrame embed to see their maps, I put an iFrame to embed the manufacturers websites which carry the latest specifications, etc.  Anyway, whereas Google's iFrame embed still works, my manufacturer embeds all quit working.  Here's the code I used:

<iframe width="100%" height="2000px" src="http://www.themanufacturer.com/" frameborder="0"></iframe>

Now for comparison here's a working Google Map embed:

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d98466.00726309055!2d-82.481088512588 77!3d39.5..." width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

Google's works but mine doesn't.  I even changed my code to more closely mimic theirs and it still didn't work.  The site I'm trying to embed is not ssl whereas mine is, but even so there should at least be a warning of some type popping up into that iFrame.

<iframe src=""width="100%" height="450" frameborder="0" style="border:0" allowfullscreen><iframe>

Any help appreciated.  Thanks!

Its probably as a results of 'mixed' content blocking by the browser.

You're loading http:// into maybe a secure https:// protocal page?

See Googles iframe uses https:// whilst your's uses http://

Iframes that use the http:// protocol are seen as a security risk so won't be loaded into a https:// secure page.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 13, 2018 Jun 13, 2018

Copy link to clipboard

Copied

Thanks osgood and that pretty much mirrors my thoughts on it as well.  For manufacturers reps that was such a wonderful function.  Now the only recourse the smaller reps can do is throw up some logos, a few parts and a contact number basically.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 13, 2018 Jun 13, 2018

Copy link to clipboard

Copied

To add to osgood_'s response, iframes should actually be avoided.  They are security risks, regardless of http or https.

https://stackoverflow.com/questions/35702505/can-using-an-iframe-pose-a-security-risk

V/r,

^ _ ^

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 13, 2018 Jun 13, 2018

Copy link to clipboard

Copied

For security reasons, iframes that lead to other domains are going to be blocked by browsers.  The reason Goolge maps & YouTube embeds work is because they use scripts at their end.

OPTION #1 Dump the iframes and use direct links to mfg sites.

OPTION #2  Contact the mfg sites and ask them to provide you with scripted embed codes you can use on your site.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 13, 2018 Jun 13, 2018

Copy link to clipboard

Copied

LATEST

Not sure what you mean by scripted embed codes, Nancy.  All I saw on the google map embed was pretty much a standard embed code.  At any rate, that's where I'm going with some of the clients.  Some of these guys are in very competitive markets and they don't want to push their customers to a manufacturer's website where they recommend multiple dealers / distributors.  Having it at least embedded in the page keeps them with the distributor's name and contact info up at the top, bottom or side.  Now that's gone many are just putting the logos of the makers with no contact info for them at all and just saying call us if you have any questions.  Ah, well, thanks for your always wise input but gotta run right now.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines