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
精彩评论