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.53563893349125!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8847ee572ed9f4 c 5%3A0x3214c3a091fe24c4!2sLogan%2C+OH+43138!5e0!3m2!1sen!2sus!4v1528890519737" 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.
To add to osgood_'s response, iframes should actually be avoided. They are security risks, regardless of http or https.
^ _ ^
1 person found this helpful
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.
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.
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.