cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 125 members 1,428 guests
Please welcome our newest community members: