cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
thinkvisual Frequent Visitor
Frequent Visitor

Embedding iFrames - blockquote's .JS file appears to be getting blocked when published

 

Hi experts

 

I am embedding HTML using this  (appreciate it is a thirdparty plugin from marketplace but i believe this is about how PBI handles Javascript) I am referenceing social media posts and have found that when I reference an iframe and publish to PBI web it works perfectly. 

 

<iframe src="https://www.instagram.com/p/Bnq7OsjnOWa/embed" width="400" height="600" frameborder="0" scrolling="no" allowtransparency="true"></iframe>

 

However, when I use the blockquote approach as required by some other social channels (as below) and publish to PBI web - it looks like the .JS file is getting blocked. Is there a way I can get around this? I have read that PBI has a Javascript API* - could this be a way to make it work?

 

<blockquote class="twitter-tweet" data-lang="en-gb"><p lang="en" dir="ltr">Create a more functional and colorful picture of your <a href="https://twitter.com/hashtag/data?src=hash&amp;ref_src=twsrc%5Etfw">#data</a> with these best practices for <a href="https://twitter.com/hashtag/dataviz?src=hash&amp;ref_src=twsrc%5Etfw">#dataviz</a>. Learn more: <a href="https://t.co/hgIskVlLQL">https://t.co/hgIskVlLQL</a> <a href="https://t.co/incSjOTAqj">pic.twitter.com/incSjOTAqj</a></p>&mdash; Power BI (@MSPowerBI) <a href="https://twitter.com/MSPowerBI/status/1133432754836783112?ref_src=twsrc%5Etfw">28 May 2019</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

 

*my reference here

https://powerbi.microsoft.com/en-us/blog/intro-pbi-js-api/

"....The iframe acts as a boundary between your application and the Power BI report. With no way to pass infromation through the iframe..... JavaScript API, which provides bidirectional communication between Power BI reports and your application"

 

Thanks!

David

 

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 180 members 1,985 guests
Please welcome our newest community members: