views:

111

answers:

1

I am making a JSONp call to youtube using oembed and on response firebug gives "invalid label" error

Here is my code

site = "www.youtube.com";
url = "http://www.youtube.com/watch?v=slORb622ZI8";

$.getJSON("http://"+site+"/oembed?callback=?",{"format":"json","url":url},function(data){
    alert("hello:\n"+data);
    alert(data.provider_url);
});

Anyone ran into similar problem with oembed jsonp requests?

A: 

Did anyone resolve this - it seems the JSON string is truly a JSON string? Don't want to have to resort to XML request and can't expect user to get security concerns on IE(6/7)

Dylan