I am working with a service called Embedly, which makes it possible to 'enrich' ones links in the page. The people at embedly have made it possible to call there API with jQuery.
So first one has a link like this:
<a href="http://www.bbc.co.uk/news/business-24692392">bbc</a>
Then you call the API to do the magic like this:
var hr = $('a').prop('href');
$.embedly.extract([hr], {key: '672cb2dfbc7249f2beb67db44204a39c'})
.progress(function(result){
$('body').html(result.content);
});
The problem is that I can't seem to process two links at the same time. If you look at this example at JsFiddle(link) you will see only one link is being processed. I tried solving this with jQuery each
and calling the two links as different variables but the API always processes the last url. How do I get it to process multiple URL's?
Im more of a javascript guy so here you go...
WORKING DEMO