最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Load oEmbed iframe within ajax call

matteradmin8PV0评论

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();
}

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far