Load oEmbed iframe within ajax call

admin2025-06-06  2

I'm trying to load oembed shortcode loaded via ajax.

The problem is that the oembed shortcode seems to work as I have a blockquote instead of the instagram link. However the blockquote is not replaced by an iframe.

There should be a javascript function searching for blockquotes and replacing it by an iframe but it is not fired because I don't load all the page ?

Does anyone know how to fire this ?

thanks

I'm trying to load oembed shortcode loaded via ajax.

The problem is that the oembed shortcode seems to work as I have a blockquote instead of the instagram link. However the blockquote is not replaced by an iframe.

There should be a javascript function searching for blockquotes and replacing it by an iframe but it is not fired because I don't load all the page ?

Does anyone know how to fire this ?

thanks

Share Improve this question asked Nov 23, 2018 at 9:17 leopold_pepichocleopold_pepichoc 1
Add a comment  | 

1 Answer 1

Reset to default 0

I figured out that I needed to call specific plateform function to fire the process. In my case Instagram and Facebook :

window.instgrm.Embeds.process();
if(typeof FB!=="undefined"){
  FB.XFBML.parse();
}
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749155420a316836.html

最新回复(0)