JSON ajax call for youtue
HTML
<div id="result"></div>
JavaScript
jQuery.ajax({
url: 'http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3DbDOYN-6gdRE&format=json',
type: 'POST',
// dataType: 'jsonp',
success: function(data, textStatus, jqXHR)
{
$("#result").html(data);
},
error: function(jqXHR, textStatus, errorThrown)
{
// Handle errors here
alert('ERRORS: ' + textStatus);
}
});