I'm stuck - and it's pretty frustrating for something I thought was going to be simple :(
Jquery:
$.ajax({
url: "http://ur.ly/new.json?href=http://www.yahoo.com"),
type: "GET",
dataType: "jsonp",
success: function(data){
console.log(data);
}});
I've tried doing this, and FF gives me an "invalid label" error, Chrome gives another.
When I use "json" as the data type, I get a null return.
The frustrating thing is that the URL, when you try it on the browser, works fine. And the error from the "jsonp" variable for the returned data shows the data I want, but errors prevent me from getting to it.
I've tried swapping to XML or Script, changing the API's requirements accordingly, but nothing. I've tried other shortening sites but the same thing keeps happening.
Also tried porting the query part to data:, but it didn't work either.
HELP! :( And thanks for looking through. :)