开发者

using oembed - json responses (in client side javascript)

If an oembed provider is only outputting json and xml, does that mean it is impossible to use this via cl开发者_开发百科ient side javascript? ($.ajax request to the provider)?

Can we only use oembed providers that allow for a jsonp callback in javascript?

Thanks, Wesley


you cannot use ajax across different domains. Jsonp is an option, other option is to have a server side script which will fetch the data from the provider and then make an ajax call to that script to return the fetched data

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜