admin管理员组文章数量:1130349
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 11 Answer
Reset to default 0I 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();
}
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 11 Answer
Reset to default 0I 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();
}
本文标签: Load oEmbed iframe within ajax call
版权声明:本文标题:Load oEmbed iframe within ajax call 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749155395a2324514.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论